| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 108 // specified by |origin_url| and |type|. | 108 // specified by |origin_url| and |type|. |
| 109 // (The path is similar to the origin's root path but doesn't contain | 109 // (The path is similar to the origin's root path but doesn't contain |
| 110 // the 'unique' part.) | 110 // the 'unique' part.) |
| 111 // Returns an empty path if the given type is invalid. | 111 // Returns an empty path if the given type is invalid. |
| 112 // This method can only be called on the file thread. | 112 // This method can only be called on the file thread. |
| 113 FilePath GetBaseDirectoryForOriginAndType( | 113 FilePath GetBaseDirectoryForOriginAndType( |
| 114 const GURL& origin_url, | 114 const GURL& origin_url, |
| 115 FileSystemType type, | 115 FileSystemType type, |
| 116 bool create) const; | 116 bool create) const; |
| 117 | 117 |
| 118 FileSystemFileUtil* GetFileSystemFileUtil(); | 118 virtual FileSystemFileUtil* GetFileSystemFileUtil(); |
| 119 | 119 |
| 120 // Deletes the data on the origin and reports the amount of deleted data | 120 // Deletes the data on the origin and reports the amount of deleted data |
| 121 // to the quota manager via |proxy|. | 121 // to the quota manager via |proxy|. |
| 122 bool DeleteOriginDataOnFileThread( | 122 bool DeleteOriginDataOnFileThread( |
| 123 quota::QuotaManagerProxy* proxy, | 123 quota::QuotaManagerProxy* proxy, |
| 124 const GURL& origin_url, | 124 const GURL& origin_url, |
| 125 FileSystemType type); | 125 FileSystemType type); |
| 126 | 126 |
| 127 // Quota util methods. | 127 // Quota util methods. |
| 128 virtual void GetOriginsForTypeOnFileThread( | 128 virtual void GetOriginsForTypeOnFileThread( |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 180 | 180 |
| 181 // Acccessed only on the file thread. | 181 // Acccessed only on the file thread. |
| 182 std::set<GURL> visited_origins_; | 182 std::set<GURL> visited_origins_; |
| 183 | 183 |
| 184 DISALLOW_COPY_AND_ASSIGN(SandboxMountPointProvider); | 184 DISALLOW_COPY_AND_ASSIGN(SandboxMountPointProvider); |
| 185 }; | 185 }; |
| 186 | 186 |
| 187 } // namespace fileapi | 187 } // namespace fileapi |
| 188 | 188 |
| 189 #endif // WEBKIT_FILEAPI_SANDBOX_MOUNT_POINT_PROVIDER_H_ | 189 #endif // WEBKIT_FILEAPI_SANDBOX_MOUNT_POINT_PROVIDER_H_ |
| OLD | NEW |