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_FILE_SYSTEM_QUOTA_UTIL_H_ | 5 #ifndef WEBKIT_FILEAPI_FILE_SYSTEM_QUOTA_UTIL_H_ |
6 #define WEBKIT_FILEAPI_FILE_SYSTEM_QUOTA_UTIL_H_ | 6 #define WEBKIT_FILEAPI_FILE_SYSTEM_QUOTA_UTIL_H_ |
7 | 7 |
8 #include <set> | 8 #include <set> |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
84 // Called by quota_file_util or file_writer_delegate. | 84 // Called by quota_file_util or file_writer_delegate. |
85 // Called before a write operation modifies the origin's storage data. | 85 // Called before a write operation modifies the origin's storage data. |
86 virtual void StartUpdateOriginOnFileThread(const GURL& origin_url, | 86 virtual void StartUpdateOriginOnFileThread(const GURL& origin_url, |
87 fileapi::FileSystemType type) = 0; | 87 fileapi::FileSystemType type) = 0; |
88 | 88 |
89 // Called by quota_file_util or file_writer_delegate. | 89 // Called by quota_file_util or file_writer_delegate. |
90 // Called after a write operation modifies the origin's storage data. | 90 // Called after a write operation modifies the origin's storage data. |
91 virtual void EndUpdateOriginOnFileThread(const GURL& origin_url, | 91 virtual void EndUpdateOriginOnFileThread(const GURL& origin_url, |
92 fileapi::FileSystemType type) = 0; | 92 fileapi::FileSystemType type) = 0; |
93 | 93 |
| 94 virtual void InvalidateUsageCache(const GURL& origin_url, |
| 95 fileapi::FileSystemType type) = 0; |
| 96 |
94 Proxy* proxy() { return proxy_.get(); } | 97 Proxy* proxy() { return proxy_.get(); } |
95 | 98 |
96 protected: | 99 protected: |
97 explicit FileSystemQuotaUtil(base::MessageLoopProxy* file_thread); | 100 explicit FileSystemQuotaUtil(base::MessageLoopProxy* file_thread); |
98 virtual ~FileSystemQuotaUtil(); | 101 virtual ~FileSystemQuotaUtil(); |
99 | 102 |
100 private: | 103 private: |
101 scoped_refptr<Proxy> proxy_; | 104 scoped_refptr<Proxy> proxy_; |
102 }; | 105 }; |
103 | 106 |
104 } // namespace fileapi | 107 } // namespace fileapi |
105 | 108 |
106 #endif // WEBKIT_FILEAPI_FILE_SYSTEM_QUOTA_UTIL_H_ | 109 #endif // WEBKIT_FILEAPI_FILE_SYSTEM_QUOTA_UTIL_H_ |
OLD | NEW |