diff options
author | tzik@chromium.org <tzik@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-10-02 20:55:58 +0000 |
---|---|---|
committer | tzik@chromium.org <tzik@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-10-02 20:55:58 +0000 |
commit | a2f641a73dcf5275e4f75e53e94d0b893f27850c (patch) | |
tree | b27d660cde81a1b5cc6d3829682e7630e84d3adc /chrome/browser/sync_file_system/syncable_file_system_util.h | |
parent | 3a70c6d47b3fcf722951b71f85d46da970d6473f (diff) | |
download | chromium_src-a2f641a73dcf5275e4f75e53e94d0b893f27850c.zip chromium_src-a2f641a73dcf5275e4f75e53e94d0b893f27850c.tar.gz chromium_src-a2f641a73dcf5275e4f75e53e94d0b893f27850c.tar.bz2 |
[SyncFS] Misc fix and polish for SyncEngine and SyncEngineInitializer
* Add retry limit to SyncEngineInitializer,
* Rename drive_api and drive_api_service to drive_service for consistency,
* Add missing DriveAPIService initialization,
* Add RunSoon as a utility.
R=kinuko, nhiroki
BUG=240165
NOTRY=true
Review URL: https://codereview.chromium.org/25539002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@226556 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/sync_file_system/syncable_file_system_util.h')
-rw-r--r-- | chrome/browser/sync_file_system/syncable_file_system_util.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/chrome/browser/sync_file_system/syncable_file_system_util.h b/chrome/browser/sync_file_system/syncable_file_system_util.h index 3cce3ad..81df785 100644 --- a/chrome/browser/sync_file_system/syncable_file_system_util.h +++ b/chrome/browser/sync_file_system/syncable_file_system_util.h @@ -7,6 +7,7 @@ #include <string> +#include "base/callback_forward.h" #include "base/files/file_path.h" #include "webkit/browser/fileapi/file_system_url.h" @@ -15,6 +16,10 @@ class FileSystemContext; class FileSystemURL; } +namespace tracked_objects { +class Location; +} + namespace sync_file_system { // Registers a syncable filesystem. @@ -100,6 +105,10 @@ class ScopedEnableSyncFSDirectoryOperation { DISALLOW_COPY_AND_ASSIGN(ScopedEnableSyncFSDirectoryOperation); }; +// Posts |callback| to the current thread. +void RunSoon(const tracked_objects::Location& from_here, + const base::Closure& callback); + } // namespace sync_file_system #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_SYNCABLE_FILE_SYSTEM_UTIL_H_ |