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

Unified Diff: chrome/browser/sync_file_system/local/sync_file_system_backend.h

Issue 442383002: Move storage-related files from webkit/ to new top-level directory storage/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/sync_file_system/local/sync_file_system_backend.h
diff --git a/chrome/browser/sync_file_system/local/sync_file_system_backend.h b/chrome/browser/sync_file_system/local/sync_file_system_backend.h
index 86ef76fc92ec943b9eb2abbc1791ec7b30b9689b..cfecfe747be1d00f311b03c7a7c051bf5a626d78 100644
--- a/chrome/browser/sync_file_system/local/sync_file_system_backend.h
+++ b/chrome/browser/sync_file_system/local/sync_file_system_backend.h
@@ -10,17 +10,16 @@
#include "chrome/browser/sync_file_system/sync_status_code.h"
#include "content/public/browser/notification_observer.h"
#include "content/public/browser/notification_registrar.h"
-#include "webkit/browser/fileapi/file_system_backend.h"
-#include "webkit/browser/fileapi/file_system_quota_util.h"
-#include "webkit/browser/fileapi/sandbox_file_system_backend_delegate.h"
+#include "storage/browser/fileapi/file_system_backend.h"
+#include "storage/browser/fileapi/file_system_quota_util.h"
+#include "storage/browser/fileapi/sandbox_file_system_backend_delegate.h"
namespace sync_file_system {
class LocalFileChangeTracker;
class LocalFileSyncContext;
-class SyncFileSystemBackend
- : public fileapi::FileSystemBackend {
+class SyncFileSystemBackend : public storage::FileSystemBackend {
public:
explicit SyncFileSystemBackend(Profile* profile);
virtual ~SyncFileSystemBackend();
@@ -28,36 +27,35 @@ class SyncFileSystemBackend
static SyncFileSystemBackend* CreateForTesting();
// FileSystemBackend overrides.
- virtual bool CanHandleType(fileapi::FileSystemType type) const OVERRIDE;
- virtual void Initialize(fileapi::FileSystemContext* context) OVERRIDE;
- virtual void ResolveURL(const fileapi::FileSystemURL& url,
- fileapi::OpenFileSystemMode mode,
+ virtual bool CanHandleType(storage::FileSystemType type) const OVERRIDE;
+ virtual void Initialize(storage::FileSystemContext* context) OVERRIDE;
+ virtual void ResolveURL(const storage::FileSystemURL& url,
+ storage::OpenFileSystemMode mode,
const OpenFileSystemCallback& callback) OVERRIDE;
- virtual fileapi::AsyncFileUtil* GetAsyncFileUtil(
- fileapi::FileSystemType type) OVERRIDE;
- virtual fileapi::CopyOrMoveFileValidatorFactory*
- GetCopyOrMoveFileValidatorFactory(
- fileapi::FileSystemType type,
- base::File::Error* error_code) OVERRIDE;
- virtual fileapi::FileSystemOperation* CreateFileSystemOperation(
- const fileapi::FileSystemURL& url,
- fileapi::FileSystemContext* context,
+ virtual storage::AsyncFileUtil* GetAsyncFileUtil(
+ storage::FileSystemType type) OVERRIDE;
+ virtual storage::CopyOrMoveFileValidatorFactory*
+ GetCopyOrMoveFileValidatorFactory(storage::FileSystemType type,
+ base::File::Error* error_code) OVERRIDE;
+ virtual storage::FileSystemOperation* CreateFileSystemOperation(
+ const storage::FileSystemURL& url,
+ storage::FileSystemContext* context,
base::File::Error* error_code) const OVERRIDE;
virtual bool SupportsStreaming(
- const fileapi::FileSystemURL& url) const OVERRIDE;
- virtual scoped_ptr<webkit_blob::FileStreamReader> CreateFileStreamReader(
- const fileapi::FileSystemURL& url,
+ const storage::FileSystemURL& url) const OVERRIDE;
+ virtual scoped_ptr<storage::FileStreamReader> CreateFileStreamReader(
+ const storage::FileSystemURL& url,
int64 offset,
const base::Time& expected_modification_time,
- fileapi::FileSystemContext* context) const OVERRIDE;
- virtual scoped_ptr<fileapi::FileStreamWriter> CreateFileStreamWriter(
- const fileapi::FileSystemURL& url,
+ storage::FileSystemContext* context) const OVERRIDE;
+ virtual scoped_ptr<storage::FileStreamWriter> CreateFileStreamWriter(
+ const storage::FileSystemURL& url,
int64 offset,
- fileapi::FileSystemContext* context) const OVERRIDE;
- virtual fileapi::FileSystemQuotaUtil* GetQuotaUtil() OVERRIDE;
+ storage::FileSystemContext* context) const OVERRIDE;
+ virtual storage::FileSystemQuotaUtil* GetQuotaUtil() OVERRIDE;
static SyncFileSystemBackend* GetBackend(
- const fileapi::FileSystemContext* context);
+ const storage::FileSystemContext* context);
LocalFileChangeTracker* change_tracker() { return change_tracker_.get(); }
void SetLocalFileChangeTracker(scoped_ptr<LocalFileChangeTracker> tracker);
@@ -83,7 +81,7 @@ class SyncFileSystemBackend
};
// Not owned.
- fileapi::FileSystemContext* context_;
+ storage::FileSystemContext* context_;
scoped_ptr<LocalFileChangeTracker> change_tracker_;
scoped_refptr<LocalFileSyncContext> sync_context_;
@@ -95,16 +93,16 @@ class SyncFileSystemBackend
// testing.
bool skip_initialize_syncfs_service_for_testing_;
- fileapi::SandboxFileSystemBackendDelegate* GetDelegate() const;
+ storage::SandboxFileSystemBackendDelegate* GetDelegate() const;
void InitializeSyncFileSystemService(
const GURL& origin_url,
const SyncStatusCallback& callback);
void DidInitializeSyncFileSystemService(
- fileapi::FileSystemContext* context,
+ storage::FileSystemContext* context,
const GURL& origin_url,
- fileapi::FileSystemType type,
- fileapi::OpenFileSystemMode mode,
+ storage::FileSystemType type,
+ storage::OpenFileSystemMode mode,
const OpenFileSystemCallback& callback,
SyncStatusCode status);

Powered by Google App Engine
This is Rietveld 408576698