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

Side by Side Diff: webkit/browser/fileapi/plugin_private_file_system_backend.h

Issue 452043003: [ew] Add basic classes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Added missing files. Created 6 years, 3 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_PLUGIN_PRIVATE_FILE_SYSTEM_BACKEND_H_ 5 #ifndef WEBKIT_BROWSER_FILEAPI_PLUGIN_PRIVATE_FILE_SYSTEM_BACKEND_H_
6 #define WEBKIT_BROWSER_FILEAPI_PLUGIN_PRIVATE_FILE_SYSTEM_BACKEND_H_ 6 #define WEBKIT_BROWSER_FILEAPI_PLUGIN_PRIVATE_FILE_SYSTEM_BACKEND_H_
7 7
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 10
(...skipping 11 matching lines...) Expand all
22 class PluginPrivateFileSystemBackendTest; 22 class PluginPrivateFileSystemBackendTest;
23 } 23 }
24 24
25 namespace storage { 25 namespace storage {
26 class SpecialStoragePolicy; 26 class SpecialStoragePolicy;
27 } 27 }
28 28
29 namespace storage { 29 namespace storage {
30 30
31 class ObfuscatedFileUtil; 31 class ObfuscatedFileUtil;
32 class WatcherManager;
32 33
33 class STORAGE_EXPORT PluginPrivateFileSystemBackend 34 class STORAGE_EXPORT PluginPrivateFileSystemBackend
34 : public FileSystemBackend, 35 : public FileSystemBackend,
35 public FileSystemQuotaUtil { 36 public FileSystemQuotaUtil {
36 public: 37 public:
37 class FileSystemIDToPluginMap; 38 class FileSystemIDToPluginMap;
38 typedef base::Callback<void(base::File::Error result)> StatusCallback; 39 typedef base::Callback<void(base::File::Error result)> StatusCallback;
39 40
40 PluginPrivateFileSystemBackend( 41 PluginPrivateFileSystemBackend(
41 base::SequencedTaskRunner* file_task_runner, 42 base::SequencedTaskRunner* file_task_runner,
(...skipping 16 matching lines...) Expand all
58 OpenFileSystemMode mode, 59 OpenFileSystemMode mode,
59 const StatusCallback& callback); 60 const StatusCallback& callback);
60 61
61 // FileSystemBackend overrides. 62 // FileSystemBackend overrides.
62 virtual bool CanHandleType(FileSystemType type) const OVERRIDE; 63 virtual bool CanHandleType(FileSystemType type) const OVERRIDE;
63 virtual void Initialize(FileSystemContext* context) OVERRIDE; 64 virtual void Initialize(FileSystemContext* context) OVERRIDE;
64 virtual void ResolveURL(const FileSystemURL& url, 65 virtual void ResolveURL(const FileSystemURL& url,
65 OpenFileSystemMode mode, 66 OpenFileSystemMode mode,
66 const OpenFileSystemCallback& callback) OVERRIDE; 67 const OpenFileSystemCallback& callback) OVERRIDE;
67 virtual AsyncFileUtil* GetAsyncFileUtil(FileSystemType type) OVERRIDE; 68 virtual AsyncFileUtil* GetAsyncFileUtil(FileSystemType type) OVERRIDE;
69 virtual WatcherManager* GetWatcherManager(FileSystemType type) OVERRIDE;
68 virtual CopyOrMoveFileValidatorFactory* GetCopyOrMoveFileValidatorFactory( 70 virtual CopyOrMoveFileValidatorFactory* GetCopyOrMoveFileValidatorFactory(
69 FileSystemType type, 71 FileSystemType type,
70 base::File::Error* error_code) OVERRIDE; 72 base::File::Error* error_code) OVERRIDE;
71 virtual FileSystemOperation* CreateFileSystemOperation( 73 virtual FileSystemOperation* CreateFileSystemOperation(
72 const FileSystemURL& url, 74 const FileSystemURL& url,
73 FileSystemContext* context, 75 FileSystemContext* context,
74 base::File::Error* error_code) const OVERRIDE; 76 base::File::Error* error_code) const OVERRIDE;
75 virtual bool SupportsStreaming(const FileSystemURL& url) const OVERRIDE; 77 virtual bool SupportsStreaming(const FileSystemURL& url) const OVERRIDE;
76 virtual bool HasInplaceCopyImplementation( 78 virtual bool HasInplaceCopyImplementation(
77 storage::FileSystemType type) const OVERRIDE; 79 storage::FileSystemType type) const OVERRIDE;
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 scoped_ptr<AsyncFileUtil> file_util_; 140 scoped_ptr<AsyncFileUtil> file_util_;
139 FileSystemIDToPluginMap* plugin_map_; // Owned by file_util_. 141 FileSystemIDToPluginMap* plugin_map_; // Owned by file_util_.
140 base::WeakPtrFactory<PluginPrivateFileSystemBackend> weak_factory_; 142 base::WeakPtrFactory<PluginPrivateFileSystemBackend> weak_factory_;
141 143
142 DISALLOW_COPY_AND_ASSIGN(PluginPrivateFileSystemBackend); 144 DISALLOW_COPY_AND_ASSIGN(PluginPrivateFileSystemBackend);
143 }; 145 };
144 146
145 } // namespace storage 147 } // namespace storage
146 148
147 #endif // WEBKIT_BROWSER_FILEAPI_PLUGIN_PRIVATE_FILE_SYSTEM_BACKEND_H_ 149 #endif // WEBKIT_BROWSER_FILEAPI_PLUGIN_PRIVATE_FILE_SYSTEM_BACKEND_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698