| Index: chrome/browser/chromeos/extensions/file_manager/file_browser_private_api.h
|
| diff --git a/chrome/browser/chromeos/extensions/file_manager/file_browser_private_api.h b/chrome/browser/chromeos/extensions/file_manager/file_browser_private_api.h
|
| index f34cf240474ae261a61d05d1e5f0451178d27ad7..930afce603efa6c53a41c54db2d5d9d12ee3d54e 100644
|
| --- a/chrome/browser/chromeos/extensions/file_manager/file_browser_private_api.h
|
| +++ b/chrome/browser/chromeos/extensions/file_manager/file_browser_private_api.h
|
| @@ -145,15 +145,39 @@ class RequestLocalFileSystemFunction : public FileBrowserFunction {
|
| virtual bool RunImpl() OVERRIDE;
|
|
|
| private:
|
| - class LocalFileSystemCallbackDispatcher;
|
| -
|
| void RespondSuccessOnUIThread(const std::string& name,
|
| const GURL& root_path);
|
| void RespondFailedOnUIThread(base::PlatformFileError error_code);
|
| +
|
| + // Requests to open the file system using |file_system_context| and
|
| + // |source_url| on the FILE thread. |child_id|, the process ID of the
|
| + // extension, is used for granting file system access permissions to the
|
| + // extension.
|
| void RequestOnFileThread(
|
| scoped_refptr<fileapi::FileSystemContext> file_system_context,
|
| const GURL& source_url,
|
| int child_id);
|
| +
|
| + // Part of RequestOnFileThread(). Called when
|
| + // FileSystemContext::OpenFileSystem() is done successfully.
|
| + void DidOpenFileSystem(
|
| + scoped_refptr<fileapi::FileSystemContext> file_system_context,
|
| + int child_id,
|
| + scoped_refptr<const extensions::Extension> extension,
|
| + base::PlatformFileError result,
|
| + const std::string& name,
|
| + const GURL& root_path);
|
| +
|
| + // Part of RequestOnFileThread(). Called when
|
| + // FileSystemContext::OpenFileSystem() is done unsuccessfully.
|
| + void DidFail(base::PlatformFileError error_code);
|
| +
|
| + // Sets up file system access permissions to the extension identified by
|
| + // |child_id|.
|
| + bool SetupFileSystemAccessPermissions(
|
| + scoped_refptr<fileapi::FileSystemContext> file_system_context,
|
| + int child_id,
|
| + scoped_refptr<const extensions::Extension> extension);
|
| };
|
|
|
| // Implements the chrome.fileBrowserPrivate.addFileWatch method.
|
|
|