Index: webkit/fileapi/syncable/syncable_file_system_util.h |
diff --git a/webkit/fileapi/syncable/syncable_file_system_util.h b/webkit/fileapi/syncable/syncable_file_system_util.h |
deleted file mode 100644 |
index 02f754791494bf82cace6cad7327f4662fe4858a..0000000000000000000000000000000000000000 |
--- a/webkit/fileapi/syncable/syncable_file_system_util.h |
+++ /dev/null |
@@ -1,103 +0,0 @@ |
-// Copyright (c) 2012 The Chromium Authors. All rights reserved. |
-// Use of this source code is governed by a BSD-style license that can be |
-// found in the LICENSE file. |
- |
-#ifndef WEBKIT_FILEAPI_SYNCABLE_SYNCABLE_FILE_SYSTEM_UTIL_H_ |
-#define WEBKIT_FILEAPI_SYNCABLE_SYNCABLE_FILE_SYSTEM_UTIL_H_ |
- |
-#include <string> |
- |
-#include "base/files/file_path.h" |
-#include "webkit/browser/fileapi/file_system_url.h" |
-#include "webkit/storage/webkit_storage_export.h" |
- |
-namespace fileapi { |
-class FileSystemContext; |
-class FileSystemURL; |
-class LocalFileSystemOperation; |
-} |
- |
-namespace sync_file_system { |
- |
-// Registers a syncable filesystem with the given |service_name|. |
-WEBKIT_STORAGE_EXPORT bool RegisterSyncableFileSystem( |
- const std::string& service_name); |
- |
-// Revokes the syncable filesystem that was registered with |service_name|. |
-WEBKIT_STORAGE_EXPORT bool RevokeSyncableFileSystem( |
- const std::string& service_name); |
- |
-// Returns the root URI of the syncable filesystem that can be specified by a |
-// pair of |origin| and |service_name|. |
-WEBKIT_STORAGE_EXPORT GURL GetSyncableFileSystemRootURI( |
- const GURL& origin, const std::string& service_name); |
- |
-// Creates a FileSystem URL for the |path| in a syncable filesystem |
-// identifiable by a pair of |origin| and |service_name|. |
-// |
-// Example: Assume following arguments are given: |
-// origin: 'http://www.example.com/', |
-// service_name: 'service_name', |
-// path: '/foo/bar', |
-// returns 'filesystem:http://www.example.com/external/service_name/foo/bar' |
-WEBKIT_STORAGE_EXPORT fileapi::FileSystemURL CreateSyncableFileSystemURL( |
- const GURL& origin, const std::string& service_name, |
- const base::FilePath& path); |
- |
-// Serializes a given FileSystemURL |url| and sets the serialized string to |
-// |serialized_url|. If the URL does not represent a syncable filesystem, |
-// |serialized_url| is not filled in, and returns false. Separators of the |
-// path will be normalized depending on its platform. |
-// |
-// Example: Assume a following FileSystemURL object is given: |
-// origin() returns 'http://www.example.com/', |
-// type() returns the kFileSystemTypeSyncable, |
-// filesystem_id() returns 'service_name', |
-// path() returns '/foo/bar', |
-// this URL will be serialized to |
-// (on Windows) |
-// 'filesystem:http://www.example.com/external/service_name/foo\\bar' |
-// (on others) |
-// 'filesystem:http://www.example.com/external/service_name/foo/bar' |
-WEBKIT_STORAGE_EXPORT bool SerializeSyncableFileSystemURL( |
- const fileapi::FileSystemURL& url, std::string* serialized_url); |
- |
-// Deserializes a serialized FileSystem URL string |serialized_url| and sets the |
-// deserialized value to |url|. If the reconstructed object is invalid or does |
-// not represent a syncable filesystem, returns false. |
-// |
-// NOTE: On any platform other than Windows, this function assumes that |
-// |serialized_url| does not contain '\\'. If it contains '\\' on such |
-// platforms, '\\' may be replaced with '/' (It would not be an expected |
-// behavior). |
-// |
-// See the comment of SerializeSyncableFileSystemURL() for more details. |
-WEBKIT_STORAGE_EXPORT bool DeserializeSyncableFileSystemURL( |
- const std::string& serialized_url, fileapi::FileSystemURL* url); |
- |
-// Returns a new FileSystemOperation that can be used to apply changes |
-// for sync. The operation returned by this method: |
-// * does NOT notify the file change tracker, but |
-// * notifies the regular sandboxed quota observer |
-// therefore quota will be updated appropriately without bothering the |
-// change tracker. |
-WEBKIT_STORAGE_EXPORT fileapi::LocalFileSystemOperation* |
- CreateFileSystemOperationForSync( |
- fileapi::FileSystemContext* file_system_context); |
- |
-// Enables or disables directory operations in Sync FileSystem API. |
-// TODO(nhiroki): This method should be used only for testing and should go |
-// away when we fully support directory operations. (http://crbug.com/161442) |
-WEBKIT_STORAGE_EXPORT void SetEnableSyncFSDirectoryOperation(bool flag); |
- |
-// Returns true if we allow directory operations in Sync FileSystem API. |
-// It is disabled by default but can be overridden by a command-line switch |
-// (--enable-syncfs-directory-operations) or by calling |
-// SetEnableSyncFSDirectoryOperation(). |
-// TODO(nhiroki): This method should be used only for testing and should go |
-// away when we fully support directory operations. (http://crbug.com/161442) |
-WEBKIT_STORAGE_EXPORT bool IsSyncFSDirectoryOperationEnabled(); |
- |
-} // namespace sync_file_system |
- |
-#endif // WEBKIT_FILEAPI_SYNCABLE_SYNCABLE_FILE_SYSTEM_UTIL_H_ |