OLD | NEW |
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 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
120 // Returns an empty path if the given type is invalid. | 120 // Returns an empty path if the given type is invalid. |
121 // This method can only be called on the file thread. | 121 // This method can only be called on the file thread. |
122 FilePath GetBaseDirectoryForOriginAndType( | 122 FilePath GetBaseDirectoryForOriginAndType( |
123 const GURL& origin_url, | 123 const GURL& origin_url, |
124 FileSystemType type, | 124 FileSystemType type, |
125 bool create) const; | 125 bool create) const; |
126 | 126 |
127 // Deletes the data on the origin and reports the amount of deleted data | 127 // Deletes the data on the origin and reports the amount of deleted data |
128 // to the quota manager via |proxy|. | 128 // to the quota manager via |proxy|. |
129 bool DeleteOriginDataOnFileThread( | 129 bool DeleteOriginDataOnFileThread( |
| 130 FileSystemContext* context, |
130 quota::QuotaManagerProxy* proxy, | 131 quota::QuotaManagerProxy* proxy, |
131 const GURL& origin_url, | 132 const GURL& origin_url, |
132 FileSystemType type); | 133 FileSystemType type); |
133 | 134 |
134 // Quota util methods. | 135 // Quota util methods. |
135 virtual void GetOriginsForTypeOnFileThread( | 136 virtual void GetOriginsForTypeOnFileThread( |
136 FileSystemType type, | 137 FileSystemType type, |
137 std::set<GURL>* origins) OVERRIDE; | 138 std::set<GURL>* origins) OVERRIDE; |
138 virtual void GetOriginsForHostOnFileThread( | 139 virtual void GetOriginsForHostOnFileThread( |
139 FileSystemType type, | 140 FileSystemType type, |
140 const std::string& host, | 141 const std::string& host, |
141 std::set<GURL>* origins) OVERRIDE; | 142 std::set<GURL>* origins) OVERRIDE; |
142 virtual int64 GetOriginUsageOnFileThread( | 143 virtual int64 GetOriginUsageOnFileThread( |
| 144 FileSystemContext* context, |
143 const GURL& origin_url, | 145 const GURL& origin_url, |
144 FileSystemType type) OVERRIDE; | 146 FileSystemType type) OVERRIDE; |
145 virtual void NotifyOriginWasAccessedOnIOThread( | 147 virtual void NotifyOriginWasAccessedOnIOThread( |
146 quota::QuotaManagerProxy* proxy, | 148 quota::QuotaManagerProxy* proxy, |
147 const GURL& origin_url, | 149 const GURL& origin_url, |
148 FileSystemType type) OVERRIDE; | 150 FileSystemType type) OVERRIDE; |
149 virtual void UpdateOriginUsageOnFileThread( | 151 virtual void UpdateOriginUsageOnFileThread( |
150 quota::QuotaManagerProxy* proxy, | 152 quota::QuotaManagerProxy* proxy, |
151 const GURL& origin_url, | 153 const GURL& origin_url, |
152 FileSystemType type, | 154 FileSystemType type, |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
193 base::Time next_release_time_for_open_filesystem_stat_; | 195 base::Time next_release_time_for_open_filesystem_stat_; |
194 | 196 |
195 base::WeakPtrFactory<SandboxMountPointProvider> weak_factory_; | 197 base::WeakPtrFactory<SandboxMountPointProvider> weak_factory_; |
196 | 198 |
197 DISALLOW_COPY_AND_ASSIGN(SandboxMountPointProvider); | 199 DISALLOW_COPY_AND_ASSIGN(SandboxMountPointProvider); |
198 }; | 200 }; |
199 | 201 |
200 } // namespace fileapi | 202 } // namespace fileapi |
201 | 203 |
202 #endif // WEBKIT_FILEAPI_SANDBOX_MOUNT_POINT_PROVIDER_H_ | 204 #endif // WEBKIT_FILEAPI_SANDBOX_MOUNT_POINT_PROVIDER_H_ |
OLD | NEW |