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

Unified Diff: webkit/appcache/appcache_storage_impl.h

Issue 7863009: Replace ancient crufty AppCacheThread with much improved MessageLoopProxy usage. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webkit/appcache/appcache_service.cc ('k') | webkit/appcache/appcache_storage_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/appcache/appcache_storage_impl.h
===================================================================
--- webkit/appcache/appcache_storage_impl.h (revision 100467)
+++ webkit/appcache/appcache_storage_impl.h (working copy)
@@ -25,6 +25,7 @@
virtual ~AppCacheStorageImpl();
void Initialize(const FilePath& cache_directory,
+ base::MessageLoopProxy* db_thread,
base::MessageLoopProxy* cache_thread);
void Disable();
bool is_disabled() const { return is_disabled_; }
@@ -122,9 +123,14 @@
// The directory in which we place files in the file system.
FilePath cache_directory_;
- scoped_refptr<base::MessageLoopProxy> cache_thread_;
bool is_incognito_;
Dirk Pranke 2011/09/09 22:40:19 Nit: any particular reason you moved this up? Beca
michaeln 2011/09/09 23:25:36 The two i smushed together, cache_directory_ and i
+ // This class operates primarily on the io thread, but schedules
+ // its DatabaseTasks on the db thread. Seperately, the disk_cache uses
+ // the cache_thread.
+ scoped_refptr<base::MessageLoopProxy> db_thread_;
+ scoped_refptr<base::MessageLoopProxy> cache_thread_;
+
// Structures to keep track of DatabaseTasks that are in-flight.
DatabaseTaskQueue scheduled_database_tasks_;
PendingCacheLoads pending_cache_loads_;
« no previous file with comments | « webkit/appcache/appcache_service.cc ('k') | webkit/appcache/appcache_storage_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698