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

Unified Diff: webkit/fileapi/file_system_operation.h

Issue 8999017: Add CreateFileSystemOperation() method to FileSystemContext (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: clang build fix Created 8 years, 11 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
« no previous file with comments | « webkit/fileapi/file_system_mount_point_provider.h ('k') | webkit/fileapi/file_system_operation.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/fileapi/file_system_operation.h
diff --git a/webkit/fileapi/file_system_operation.h b/webkit/fileapi/file_system_operation.h
index f8785e4ee486db5f5a5972ae9edda50805790756..550b54b2f28af88739c8ba17909dd0455ab3c204 100644
--- a/webkit/fileapi/file_system_operation.h
+++ b/webkit/fileapi/file_system_operation.h
@@ -43,9 +43,6 @@ class FileSystemOperationTest;
// FileSystemOperation implementation for local file systems.
class FileSystemOperation : public FileSystemOperationInterface {
public:
- FileSystemOperation(scoped_ptr<FileSystemCallbackDispatcher> dispatcher,
- scoped_refptr<base::MessageLoopProxy> proxy,
- FileSystemContext* file_system_context);
virtual ~FileSystemOperation();
// FileSystemOperation overrides.
@@ -77,6 +74,7 @@ class FileSystemOperation : public FileSystemOperationInterface {
base::ProcessHandle peer_handle) OVERRIDE;
virtual void Cancel(
scoped_ptr<FileSystemCallbackDispatcher> cancel_dispatcher) OVERRIDE;
+ virtual FileSystemOperation* AsFileSystemOperation() OVERRIDE;
// Synchronously gets the platform path for the given |path|.
void SyncGetPlatformPath(const GURL& path, FilePath* platform_path);
@@ -84,6 +82,16 @@ class FileSystemOperation : public FileSystemOperationInterface {
private:
class ScopedQuotaUtilHelper;
+ // Only MountPointProviders or testing class can create a
+ // new operation directly.
+ friend class SandboxMountPointProvider;
+ friend class CrosMountPointProvider;
+ friend class FileSystemTestHelper;
+
+ FileSystemOperation(scoped_ptr<FileSystemCallbackDispatcher> dispatcher,
+ scoped_refptr<base::MessageLoopProxy> proxy,
+ FileSystemContext* file_system_context);
+
FileSystemContext* file_system_context() const {
return operation_context_.file_system_context();
}
« no previous file with comments | « webkit/fileapi/file_system_mount_point_provider.h ('k') | webkit/fileapi/file_system_operation.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698