   renderAuthorizationDialog: ->
     (DocumentStoreAuthorizationDialog {provider: @, authCallback: @authCallback})
 
+  list: (metadata, callback) ->
+    provider = @
+    $.ajax
+      dataType: 'json'
+      url: listUrl
+      xhrFields:
+        withCredentials: true
+      success: (data) ->
+        list = []
+        path = metadata?.path or ''
+        for own key of window.localStorage
+          list.push new CloudMetadata
+            name: key
+            path: "#{path}/#{name}"
+            type: CloudMetadata.File
+            provider: provider
+        callback null, list
+      error: ->
+        callback null, []
+
+  load: (metadata, callback) ->
+
+
 module.exports = DocumentStoreProvider


authorizeUrl  = "http://document-store.herokuapp.com/user/authenticate"
checkLoginUrl = "http://document-store.herokuapp.com/user/info"

tr = require '../utils/translate'
isString = require '../utils/is-string'


  _loginSuccessful: (data) ->
    if @_loginWindow then @_loginWindow.close()
    @authCallback true

  _checkLogin: ->
