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

Side by Side Diff: webkit/fileapi/syncable/syncable_file_system_util.h

Issue 15026008: Add enable-sync-directory-operation to about:flags (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: 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 unified diff | Download patch
« no previous file with comments | « chrome/browser/about_flags.cc ('k') | webkit/fileapi/syncable/syncable_file_system_util.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef WEBKIT_FILEAPI_SYNCABLE_SYNCABLE_FILE_SYSTEM_UTIL_H_ 5 #ifndef WEBKIT_FILEAPI_SYNCABLE_SYNCABLE_FILE_SYSTEM_UTIL_H_
6 #define WEBKIT_FILEAPI_SYNCABLE_SYNCABLE_FILE_SYSTEM_UTIL_H_ 6 #define WEBKIT_FILEAPI_SYNCABLE_SYNCABLE_FILE_SYSTEM_UTIL_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/files/file_path.h" 10 #include "base/files/file_path.h"
11 #include "webkit/fileapi/file_system_url.h" 11 #include "webkit/fileapi/file_system_url.h"
12 #include "webkit/storage/webkit_storage_export.h" 12 #include "webkit/storage/webkit_storage_export.h"
13 13
14 namespace fileapi { 14 namespace fileapi {
15 class FileSystemContext; 15 class FileSystemContext;
16 class FileSystemURL; 16 class FileSystemURL;
17 class LocalFileSystemOperation; 17 class LocalFileSystemOperation;
18 } 18 }
19 19
20 namespace sync_file_system { 20 namespace sync_file_system {
21 21
22 WEBKIT_STORAGE_EXPORT const char* GetFlagForSyncFileSystemDirectoryOperation();
23
22 // Registers a syncable filesystem with the given |service_name|. 24 // Registers a syncable filesystem with the given |service_name|.
23 WEBKIT_STORAGE_EXPORT bool RegisterSyncableFileSystem( 25 WEBKIT_STORAGE_EXPORT bool RegisterSyncableFileSystem(
24 const std::string& service_name); 26 const std::string& service_name);
25 27
26 // Revokes the syncable filesystem that was registered with |service_name|. 28 // Revokes the syncable filesystem that was registered with |service_name|.
27 WEBKIT_STORAGE_EXPORT bool RevokeSyncableFileSystem( 29 WEBKIT_STORAGE_EXPORT bool RevokeSyncableFileSystem(
28 const std::string& service_name); 30 const std::string& service_name);
29 31
30 // Returns the root URI of the syncable filesystem that can be specified by a 32 // Returns the root URI of the syncable filesystem that can be specified by a
31 // pair of |origin| and |service_name|. 33 // pair of |origin| and |service_name|.
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 // It is disabled by default but can be overridden by a command-line switch 96 // It is disabled by default but can be overridden by a command-line switch
95 // (--enable-sync-directory-operations) or by calling 97 // (--enable-sync-directory-operations) or by calling
96 // SetEnableSyncDirectoryOperation(). 98 // SetEnableSyncDirectoryOperation().
97 // TODO(nhiroki): This method should be used only for testing and should go 99 // TODO(nhiroki): This method should be used only for testing and should go
98 // away when we fully support directory operations. (http://crbug.com/161442) 100 // away when we fully support directory operations. (http://crbug.com/161442)
99 WEBKIT_STORAGE_EXPORT bool IsSyncDirectoryOperationEnabled(); 101 WEBKIT_STORAGE_EXPORT bool IsSyncDirectoryOperationEnabled();
100 102
101 } // namespace sync_file_system 103 } // namespace sync_file_system
102 104
103 #endif // WEBKIT_FILEAPI_SYNCABLE_SYNCABLE_FILE_SYSTEM_UTIL_H_ 105 #endif // WEBKIT_FILEAPI_SYNCABLE_SYNCABLE_FILE_SYSTEM_UTIL_H_
OLDNEW
« no previous file with comments | « chrome/browser/about_flags.cc ('k') | webkit/fileapi/syncable/syncable_file_system_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698