Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(736)

Unified Diff: chrome/browser/chromeos/extensions/file_manager/file_browser_private_api.h

Issue 16316002: extensions: Get rid of RequestLocalFileSystemFunction::LocalFileSystemCallbackDispatcher (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: address comments Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/chromeos/extensions/file_manager/file_browser_private_api.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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.
« no previous file with comments | « no previous file | chrome/browser/chromeos/extensions/file_manager/file_browser_private_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698