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

Side by Side Diff: webkit/appcache/appcache_storage_impl.h

Issue 8991001: base::Bind: Convert most of webkit/appcache. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Review fix 2. Created 9 years 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
« no previous file with comments | « webkit/appcache/appcache_storage.cc ('k') | webkit/appcache/appcache_storage_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_APPCACHE_APPCACHE_STORAGE_IMPL_H_ 5 #ifndef WEBKIT_APPCACHE_APPCACHE_STORAGE_IMPL_H_
6 #define WEBKIT_APPCACHE_APPCACHE_STORAGE_IMPL_H_ 6 #define WEBKIT_APPCACHE_APPCACHE_STORAGE_IMPL_H_
7 7
8 #include <deque> 8 #include <deque>
9 #include <map> 9 #include <map>
10 #include <set> 10 #include <set>
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 PendingForeignMarkings pending_foreign_markings_; 147 PendingForeignMarkings pending_foreign_markings_;
148 PendingQuotaQueries pending_quota_queries_; 148 PendingQuotaQueries pending_quota_queries_;
149 149
150 // Structures to keep track of lazy response deletion. 150 // Structures to keep track of lazy response deletion.
151 std::deque<int64> deletable_response_ids_; 151 std::deque<int64> deletable_response_ids_;
152 std::vector<int64> deleted_response_ids_; 152 std::vector<int64> deleted_response_ids_;
153 bool is_response_deletion_scheduled_; 153 bool is_response_deletion_scheduled_;
154 bool did_start_deleting_responses_; 154 bool did_start_deleting_responses_;
155 int64 last_deletable_response_rowid_; 155 int64 last_deletable_response_rowid_;
156 156
157 // AppCacheDiskCache async callbacks
158 net::OldCompletionCallbackImpl<AppCacheStorageImpl> doom_callback_;
159 net::OldCompletionCallbackImpl<AppCacheStorageImpl> init_callback_;
160
161 // Created on the IO thread, but only used on the DB thread. 157 // Created on the IO thread, but only used on the DB thread.
162 AppCacheDatabase* database_; 158 AppCacheDatabase* database_;
163 159
164 // Set if we discover a fatal error like a corrupt SQL database or 160 // Set if we discover a fatal error like a corrupt SQL database or
165 // disk cache and cannot continue. 161 // disk cache and cannot continue.
166 bool is_disabled_; 162 bool is_disabled_;
167 163
168 scoped_ptr<AppCacheDiskCache> disk_cache_; 164 scoped_ptr<AppCacheDiskCache> disk_cache_;
169 165
170 // Used to short-circuit certain operations without having to schedule 166 // Used to short-circuit certain operations without having to schedule
171 // any tasks on the background database thread. 167 // any tasks on the background database thread.
172 std::deque<base::Closure> pending_simple_tasks_; 168 std::deque<base::Closure> pending_simple_tasks_;
173 base::WeakPtrFactory<AppCacheStorageImpl> weak_factory_; 169 base::WeakPtrFactory<AppCacheStorageImpl> weak_factory_;
174 170
175 friend class ChromeAppCacheServiceTest; 171 friend class ChromeAppCacheServiceTest;
176 }; 172 };
177 173
178 } // namespace appcache 174 } // namespace appcache
179 175
180 #endif // WEBKIT_APPCACHE_APPCACHE_STORAGE_IMPL_H_ 176 #endif // WEBKIT_APPCACHE_APPCACHE_STORAGE_IMPL_H_
OLDNEW
« no previous file with comments | « webkit/appcache/appcache_storage.cc ('k') | webkit/appcache/appcache_storage_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698