summaryrefslogtreecommitdiffstats
path: root/chrome/browser/sync_file_system/syncable_file_system_util.h
diff options
context:
space:
mode:
authorkinuko@chromium.org <kinuko@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-11-22 08:03:40 +0000
committerkinuko@chromium.org <kinuko@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-11-22 08:03:40 +0000
commitfeffc095a40099cb828352b7a5280a18eda33fbe (patch)
tree087bfd97bf76c5d66c977d327ae30befe94a6745 /chrome/browser/sync_file_system/syncable_file_system_util.h
parent9924a4202a81da4f6a4f5cc1cfee04512e39a220 (diff)
downloadchromium_src-feffc095a40099cb828352b7a5280a18eda33fbe.zip
chromium_src-feffc095a40099cb828352b7a5280a18eda33fbe.tar.gz
chromium_src-feffc095a40099cb828352b7a5280a18eda33fbe.tar.bz2
Prepare for supporting SyncFS V2 for whitelisted origins
BUG=240165 Review URL: https://codereview.chromium.org/82623002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@236724 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.h10
1 files changed, 10 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 81df785..7e28607 100644
--- a/chrome/browser/sync_file_system/syncable_file_system_util.h
+++ b/chrome/browser/sync_file_system/syncable_file_system_util.h
@@ -90,6 +90,16 @@ void SetEnableSyncFSDirectoryOperation(bool flag);
// away when we fully support directory operations. (http://crbug.com/161442)
bool IsSyncFSDirectoryOperationEnabled();
+// Checks the same as above, but takes |origin| and sees if directory operation
+// is enabled specifically for this |origin|.
+bool IsSyncFSDirectoryOperationEnabled(const GURL& origin);
+
+// Returns true if V2 is enabled.
+bool IsV2Enabled();
+
+// Returns true if the given |origin| is supposed to run in V2 mode.
+bool IsV2EnabledForOrigin(const GURL& origin);
+
// Returns SyncFileSystem sub-directory path.
base::FilePath GetSyncFileSystemDir(const base::FilePath& profile_base_dir);