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

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: rebased from patch 9016020 Created 9 years 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: webkit/fileapi/file_system_operation.h
diff --git a/webkit/fileapi/file_system_operation.h b/webkit/fileapi/file_system_operation.h
index ac9b3e5bb5171cd9c7d76184df1aec2ef695a249..55687d4e4784f600aa011f9c965cde2c597bca6e 100644
--- a/webkit/fileapi/file_system_operation.h
+++ b/webkit/fileapi/file_system_operation.h
@@ -44,10 +44,6 @@ class FileSystemOperationTest;
// FileSystemOperation implementation for local file systems.
class FileSystemOperation : public FileSystemOperationInterface {
public:
- // |dispatcher| will be owned by this class.
- FileSystemOperation(FileSystemCallbackDispatcher* dispatcher,
- scoped_refptr<base::MessageLoopProxy> proxy,
- FileSystemContext* file_system_context);
virtual ~FileSystemOperation();
// FileSystemOperation overrides.
@@ -85,6 +81,17 @@ 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;
+
+ // |dispatcher| will be owned by this class.
+ FileSystemOperation(FileSystemCallbackDispatcher* dispatcher,
+ scoped_refptr<base::MessageLoopProxy> proxy,
+ FileSystemContext* file_system_context);
+
FileSystemContext* file_system_context() const {
return operation_context_.file_system_context();
}

Powered by Google App Engine
This is Rietveld 408576698