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

Side by Side Diff: content/browser/appcache/appcache_storage_impl.h

Issue 1355063004: Template methods on Timer classes instead of the classes themselves. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: timer: fixcaller Created 5 years, 2 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
« no previous file with comments | « content/browser/appcache/appcache_service_impl.h ('k') | content/browser/browser_main_loop.h » ('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 CONTENT_BROWSER_APPCACHE_APPCACHE_STORAGE_IMPL_H_ 5 #ifndef CONTENT_BROWSER_APPCACHE_APPCACHE_STORAGE_IMPL_H_
6 #define CONTENT_BROWSER_APPCACHE_APPCACHE_STORAGE_IMPL_H_ 6 #define CONTENT_BROWSER_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 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 int64 last_deletable_response_rowid_; 169 int64 last_deletable_response_rowid_;
170 170
171 // Created on the IO thread, but only used on the DB thread. 171 // Created on the IO thread, but only used on the DB thread.
172 AppCacheDatabase* database_; 172 AppCacheDatabase* database_;
173 173
174 // Set if we discover a fatal error like a corrupt SQL database or 174 // Set if we discover a fatal error like a corrupt SQL database or
175 // disk cache and cannot continue. 175 // disk cache and cannot continue.
176 bool is_disabled_; 176 bool is_disabled_;
177 177
178 scoped_ptr<AppCacheDiskCache> disk_cache_; 178 scoped_ptr<AppCacheDiskCache> disk_cache_;
179 base::OneShotTimer<AppCacheStorageImpl> lazy_commit_timer_; 179 base::OneShotTimer lazy_commit_timer_;
180 180
181 // Used to short-circuit certain operations without having to schedule 181 // Used to short-circuit certain operations without having to schedule
182 // any tasks on the background database thread. 182 // any tasks on the background database thread.
183 std::deque<base::Closure> pending_simple_tasks_; 183 std::deque<base::Closure> pending_simple_tasks_;
184 base::WeakPtrFactory<AppCacheStorageImpl> weak_factory_; 184 base::WeakPtrFactory<AppCacheStorageImpl> weak_factory_;
185 185
186 friend class content::AppCacheStorageImplTest; 186 friend class content::AppCacheStorageImplTest;
187 friend class content::ChromeAppCacheServiceTest; 187 friend class content::ChromeAppCacheServiceTest;
188 }; 188 };
189 189
190 } // namespace content 190 } // namespace content
191 191
192 #endif // CONTENT_BROWSER_APPCACHE_APPCACHE_STORAGE_IMPL_H_ 192 #endif // CONTENT_BROWSER_APPCACHE_APPCACHE_STORAGE_IMPL_H_
OLDNEW
« no previous file with comments | « content/browser/appcache/appcache_service_impl.h ('k') | content/browser/browser_main_loop.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698