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

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 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 // Called by quota_file_util or file_writer_delegate. 85 // Called by quota_file_util or file_writer_delegate.
86 // Called before an write operation modifies the origin's storage data. 86 // Called before an write operation modifies the origin's storage data.
87 virtual void StartUpdateOriginOnFileThread(const GURL& origin_url, 87 virtual void StartUpdateOriginOnFileThread(const GURL& origin_url,
88 fileapi::FileSystemType type) = 0; 88 fileapi::FileSystemType type) = 0;
89 89
90 // Called by quota_file_util or file_writer_delegate. 90 // Called by quota_file_util or file_writer_delegate.
91 // Called after an write operation modifies the origin's storage data. 91 // Called after an write operation modifies the origin's storage data.
92 virtual void EndUpdateOriginOnFileThread(const GURL& origin_url, 92 virtual void EndUpdateOriginOnFileThread(const GURL& origin_url,
93 fileapi::FileSystemType type) = 0; 93 fileapi::FileSystemType type) = 0;
94 94
95 virtual void MarkDirtyOriginOnFileThread(const GURL& origin_url,
ericu 2011/08/19 04:05:56 s/MarkDirtyOrigin/MarkOriginDirty/ ?
tzik 2011/08/23 04:13:13 More directly, can I use InvalidateUsageCache?
ericu 2011/08/24 03:43:50 That looks even better.
96 fileapi::FileSystemType type) = 0;
97
95 Proxy* proxy() { return proxy_.get(); } 98 Proxy* proxy() { return proxy_.get(); }
96 99
97 protected: 100 protected:
98 explicit FileSystemQuotaUtil(base::MessageLoopProxy* file_thread); 101 explicit FileSystemQuotaUtil(base::MessageLoopProxy* file_thread);
99 virtual ~FileSystemQuotaUtil(); 102 virtual ~FileSystemQuotaUtil();
100 103
101 private: 104 private:
102 scoped_refptr<Proxy> proxy_; 105 scoped_refptr<Proxy> proxy_;
103 }; 106 };
104 107
105 } // namespace fileapi 108 } // namespace fileapi
106 109
107 #endif // WEBKIT_FILEAPI_FILE_SYSTEM_QUOTA_UTIL_H_ 110 #endif // WEBKIT_FILEAPI_FILE_SYSTEM_QUOTA_UTIL_H_
OLDNEW
« no previous file with comments | « no previous file | webkit/fileapi/obfuscated_file_system_file_util.h » ('j') | webkit/fileapi/obfuscated_file_system_file_util.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698