summaryrefslogtreecommitdiffstats
path: root/chrome/browser/sync_file_system/syncable_file_system_util.h
diff options
context:
space:
mode:
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);