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

Side by Side Diff: webkit/fileapi/sandbox_mount_point_provider.h

Issue 10828043: Wire up the deleteFileSystem operation. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Modified CrosMountPointProvider too. Created 8 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_FILEAPI_SANDBOX_MOUNT_POINT_PROVIDER_H_ 5 #ifndef WEBKIT_FILEAPI_SANDBOX_MOUNT_POINT_PROVIDER_H_
6 #define WEBKIT_FILEAPI_SANDBOX_MOUNT_POINT_PROVIDER_H_ 6 #define WEBKIT_FILEAPI_SANDBOX_MOUNT_POINT_PROVIDER_H_
7 7
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 25 matching lines...) Expand all
36 // TEMPORARY or PERSISTENT filesystems, which are placed under the user's 36 // TEMPORARY or PERSISTENT filesystems, which are placed under the user's
37 // profile directory in a sandboxed way. 37 // profile directory in a sandboxed way.
38 // This interface also lets one enumerate and remove storage for the origins 38 // This interface also lets one enumerate and remove storage for the origins
39 // that use the filesystem. 39 // that use the filesystem.
40 class FILEAPI_EXPORT SandboxMountPointProvider 40 class FILEAPI_EXPORT SandboxMountPointProvider
41 : public FileSystemMountPointProvider, 41 : public FileSystemMountPointProvider,
42 public FileSystemQuotaUtil { 42 public FileSystemQuotaUtil {
43 public: 43 public:
44 typedef FileSystemMountPointProvider::ValidateFileSystemCallback 44 typedef FileSystemMountPointProvider::ValidateFileSystemCallback
45 ValidateFileSystemCallback; 45 ValidateFileSystemCallback;
46 typedef FileSystemMountPointProvider::DeleteFileSystemCallback
47 DeleteFileSystemCallback;
tzik 2012/07/28 00:36:46 ditto.
nhiroki (google) 2012/07/28 02:01:56 Done.
46 48
47 // Origin enumerator interface. 49 // Origin enumerator interface.
48 // An instance of this interface is assumed to be called on the file thread. 50 // An instance of this interface is assumed to be called on the file thread.
49 class OriginEnumerator { 51 class OriginEnumerator {
50 public: 52 public:
51 virtual ~OriginEnumerator() {} 53 virtual ~OriginEnumerator() {}
52 54
53 // Returns the next origin. Returns empty if there are no more origins. 55 // Returns the next origin. Returns empty if there are no more origins.
54 virtual GURL Next() = 0; 56 virtual GURL Next() = 0;
55 57
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 FileSystemContext* context) const OVERRIDE; 99 FileSystemContext* context) const OVERRIDE;
98 virtual webkit_blob::FileStreamReader* CreateFileStreamReader( 100 virtual webkit_blob::FileStreamReader* CreateFileStreamReader(
99 const FileSystemURL& url, 101 const FileSystemURL& url,
100 int64 offset, 102 int64 offset,
101 FileSystemContext* context) const OVERRIDE; 103 FileSystemContext* context) const OVERRIDE;
102 virtual FileStreamWriter* CreateFileStreamWriter( 104 virtual FileStreamWriter* CreateFileStreamWriter(
103 const FileSystemURL& url, 105 const FileSystemURL& url,
104 int64 offset, 106 int64 offset,
105 FileSystemContext* context) const OVERRIDE; 107 FileSystemContext* context) const OVERRIDE;
106 virtual FileSystemQuotaUtil* GetQuotaUtil() OVERRIDE; 108 virtual FileSystemQuotaUtil* GetQuotaUtil() OVERRIDE;
109 virtual void DeleteFileSystem(
110 const GURL& origin_url,
111 FileSystemType type,
112 FileSystemContext* context,
113 const DeleteFileSystemCallback& callback) const OVERRIDE;
107 114
108 FilePath old_base_path() const; 115 FilePath old_base_path() const;
109 FilePath new_base_path() const; 116 FilePath new_base_path() const;
110 FilePath renamed_old_base_path() const; 117 FilePath renamed_old_base_path() const;
111 118
112 // Returns an origin enumerator of this provider. 119 // Returns an origin enumerator of this provider.
113 // This method can only be called on the file thread. 120 // This method can only be called on the file thread.
114 OriginEnumerator* CreateOriginEnumerator() const; 121 OriginEnumerator* CreateOriginEnumerator() const;
115 122
116 // Gets a base directory path of the sandboxed filesystem that is 123 // Gets a base directory path of the sandboxed filesystem that is
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
195 base::Time next_release_time_for_open_filesystem_stat_; 202 base::Time next_release_time_for_open_filesystem_stat_;
196 203
197 base::WeakPtrFactory<SandboxMountPointProvider> weak_factory_; 204 base::WeakPtrFactory<SandboxMountPointProvider> weak_factory_;
198 205
199 DISALLOW_COPY_AND_ASSIGN(SandboxMountPointProvider); 206 DISALLOW_COPY_AND_ASSIGN(SandboxMountPointProvider);
200 }; 207 };
201 208
202 } // namespace fileapi 209 } // namespace fileapi
203 210
204 #endif // WEBKIT_FILEAPI_SANDBOX_MOUNT_POINT_PROVIDER_H_ 211 #endif // WEBKIT_FILEAPI_SANDBOX_MOUNT_POINT_PROVIDER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698