Chromium Code Reviews| OLD | NEW |
|---|---|
| 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* GetFlagForDirectoryOperation(); | |
|
kinuko
2013/05/07 23:44:28
Can we rename this method to
GetFlagForSyncFileS
| |
| 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 Loading... | |
| 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_ |
| OLD | NEW |