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

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

Issue 7608018: Handle inconsistency between DB and Files (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: '' Created 9 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) 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
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_
OLDNEW
« no previous file with comments | « no previous file | webkit/fileapi/file_system_usage_cache.h » ('j') | webkit/fileapi/file_system_usage_cache.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698