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

Side by Side Diff: webkit/browser/fileapi/syncable/syncable_file_system_operation.h

Issue 18668003: SyncFS: Introduce SyncFileSystemBackend (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 5 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_BROWSER_FILEAPI_SYNCABLE_SYNCABLE_FILE_SYSTEM_OPERATION_H_ 5 #ifndef WEBKIT_BROWSER_FILEAPI_SYNCABLE_SYNCABLE_FILE_SYSTEM_OPERATION_H_
6 #define WEBKIT_BROWSER_FILEAPI_SYNCABLE_SYNCABLE_FILE_SYSTEM_OPERATION_H_ 6 #define WEBKIT_BROWSER_FILEAPI_SYNCABLE_SYNCABLE_FILE_SYSTEM_OPERATION_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 const StatusCallback& callback) OVERRIDE; 82 const StatusCallback& callback) OVERRIDE;
83 83
84 using base::SupportsWeakPtr<SyncableFileSystemOperation>::AsWeakPtr; 84 using base::SupportsWeakPtr<SyncableFileSystemOperation>::AsWeakPtr;
85 85
86 private: 86 private:
87 typedef SyncableFileSystemOperation self; 87 typedef SyncableFileSystemOperation self;
88 class QueueableTask; 88 class QueueableTask;
89 89
90 // Only MountPointProviders can create a new operation directly. 90 // Only MountPointProviders can create a new operation directly.
91 friend class fileapi::SandboxMountPointProvider; 91 friend class fileapi::SandboxMountPointProvider;
92 friend class SandboxMountPointProvider; 92 friend class SyncableSandboxMountPointProvider;
93
93 SyncableFileSystemOperation( 94 SyncableFileSystemOperation(
94 const fileapi::FileSystemURL& url, 95 const fileapi::FileSystemURL& url,
95 fileapi::FileSystemContext* file_system_context, 96 fileapi::FileSystemContext* file_system_context,
96 scoped_ptr<fileapi::FileSystemOperationContext> operation_context); 97 scoped_ptr<fileapi::FileSystemOperationContext> operation_context);
97 fileapi::LocalFileSystemOperation* NewOperation(); 98 fileapi::LocalFileSystemOperation* NewOperation();
98 99
99 void DidFinish(base::PlatformFileError status); 100 void DidFinish(base::PlatformFileError status);
100 void DidWrite(const WriteCallback& callback, 101 void DidWrite(const WriteCallback& callback,
101 base::PlatformFileError result, 102 base::PlatformFileError result,
102 int64 bytes, 103 int64 bytes,
(...skipping 10 matching lines...) Expand all
113 StatusCallback completion_callback_; 114 StatusCallback completion_callback_;
114 115
115 bool is_directory_operation_enabled_; 116 bool is_directory_operation_enabled_;
116 117
117 DISALLOW_COPY_AND_ASSIGN(SyncableFileSystemOperation); 118 DISALLOW_COPY_AND_ASSIGN(SyncableFileSystemOperation);
118 }; 119 };
119 120
120 } // namespace sync_file_system 121 } // namespace sync_file_system
121 122
122 #endif // WEBKIT_BROWSER_FILEAPI_SYNCABLE_SYNCABLE_FILE_SYSTEM_OPERATION_H_ 123 #endif // WEBKIT_BROWSER_FILEAPI_SYNCABLE_SYNCABLE_FILE_SYSTEM_OPERATION_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698