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 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
136 quota::QuotaManagerProxy* proxy, | 136 quota::QuotaManagerProxy* proxy, |
137 const GURL& origin_url, | 137 const GURL& origin_url, |
138 FileSystemType type, | 138 FileSystemType type, |
139 int64 delta) OVERRIDE; | 139 int64 delta) OVERRIDE; |
140 virtual void StartUpdateOriginOnFileThread( | 140 virtual void StartUpdateOriginOnFileThread( |
141 const GURL& origin_url, | 141 const GURL& origin_url, |
142 FileSystemType type) OVERRIDE; | 142 FileSystemType type) OVERRIDE; |
143 virtual void EndUpdateOriginOnFileThread( | 143 virtual void EndUpdateOriginOnFileThread( |
144 const GURL& origin_url, | 144 const GURL& origin_url, |
145 FileSystemType type) OVERRIDE; | 145 FileSystemType type) OVERRIDE; |
| 146 virtual void InvalidateUsageCache(const GURL& origin_url, |
| 147 FileSystemType type) OVERRIDE; |
146 | 148 |
147 FileSystemQuotaUtil* quota_util() { return this; } | 149 FileSystemQuotaUtil* quota_util() { return this; } |
148 | 150 |
149 private: | 151 private: |
150 // Returns a path to the usage cache file. | 152 // Returns a path to the usage cache file. |
151 FilePath GetUsageCachePathForOriginAndType( | 153 FilePath GetUsageCachePathForOriginAndType( |
152 const GURL& origin_url, | 154 const GURL& origin_url, |
153 FileSystemType type) const; | 155 FileSystemType type) const; |
154 | 156 |
155 FilePath OldCreateFileSystemRootPath( | 157 FilePath OldCreateFileSystemRootPath( |
(...skipping 17 matching lines...) Expand all Loading... |
173 | 175 |
174 // Acccessed only on the file thread. | 176 // Acccessed only on the file thread. |
175 std::set<GURL> visited_origins_; | 177 std::set<GURL> visited_origins_; |
176 | 178 |
177 DISALLOW_COPY_AND_ASSIGN(SandboxMountPointProvider); | 179 DISALLOW_COPY_AND_ASSIGN(SandboxMountPointProvider); |
178 }; | 180 }; |
179 | 181 |
180 } // namespace fileapi | 182 } // namespace fileapi |
181 | 183 |
182 #endif // WEBKIT_FILEAPI_SANDBOX_MOUNT_POINT_PROVIDER_H_ | 184 #endif // WEBKIT_FILEAPI_SANDBOX_MOUNT_POINT_PROVIDER_H_ |
OLD | NEW |