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

Unified Diff: chrome/browser/chromeos/extensions/file_handler_util.h

Issue 10543037: gdata: Convert public synchronous functions in GDataFileSystem to asynchronous. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address Satoru's and Toni's concerns. Created 8 years, 6 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
Index: chrome/browser/chromeos/extensions/file_handler_util.h
diff --git a/chrome/browser/chromeos/extensions/file_handler_util.h b/chrome/browser/chromeos/extensions/file_handler_util.h
index 84b0e2f00b4ce38ce59a61c5fe678361898c919c..f6cf964208070fd6e27becddfb70a1547d616322 100644
--- a/chrome/browser/chromeos/extensions/file_handler_util.h
+++ b/chrome/browser/chromeos/extensions/file_handler_util.h
@@ -106,10 +106,9 @@ class FileTaskExecutor : public base::RefCountedThreadSafe<FileTaskExecutor> {
const std::vector<GURL>& file_urls);
void ExecuteFailedOnUIThread();
- void ExecuteFileActionsOnUIThread(const std::string& file_system_name,
- const GURL& file_system_root,
- const FileDefinitionList& file_list,
- int handler_id);
+ void ExecuteFileActionsOnUIThread(
+ const FileDefinitionList& file_list,
tbarzic 2012/06/08 17:59:13 this should probably be in the previoius line
hshi1 2012/06/08 18:21:41 Done.
+ const base::Closure& callback);
void SetupPermissionsAndDispatchEvent(const std::string& file_system_name,
const GURL& file_system_root,
const FileDefinitionList& file_list,
@@ -121,7 +120,17 @@ class FileTaskExecutor : public base::RefCountedThreadSafe<FileTaskExecutor> {
void InitHandlerHostFileAccessPermissions(
const FileDefinitionList& file_list,
const extensions::Extension* handler_extension,
- const std::string& action_id);
+ const std::string& action_id,
+ const base::Closure& callback);
+
+ // Invoked upon completion of InitHandlerHostFileAccessPermissions initiated
+ // by ExecuteFileActionsOnUIThread.
+ void OnInitAccessForExecuteFileActionsOnUIThread(
+ const std::string& file_system_name,
+ const GURL& file_system_root,
+ const FileDefinitionList& file_list,
+ int handler_pid);
+
// Registers file permissions from |handler_host_permissions_| with
// ChildProcessSecurityPolicy for process with id |handler_pid|.
void SetupHandlerHostFileAccessPermissions(int handler_pid);

Powered by Google App Engine
This is Rietveld 408576698