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

Unified Diff: webkit/appcache/appcache_storage_impl.h

Issue 2249005: AppCache: Use a dedicated thread for the disk cache. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Bound to IO thread Created 10 years, 7 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 48989)
+++ webkit/appcache/appcache_storage_impl.h (working copy)
@@ -11,6 +11,7 @@
#include <vector>
#include "base/file_path.h"
+#include "base/message_loop_proxy.h"
#include "base/task.h"
#include "webkit/appcache/appcache_database.h"
#include "webkit/appcache/appcache_disk_cache.h"
@@ -23,7 +24,8 @@
explicit AppCacheStorageImpl(AppCacheService* service);
virtual ~AppCacheStorageImpl();
- void Initialize(const FilePath& cache_directory);
+ void Initialize(const FilePath& cache_directory,
+ base::MessageLoopProxy* cache_thread);
void Disable();
bool is_disabled() const { return is_disabled_; }
@@ -113,6 +115,7 @@
// The directory in which we place files in the file system.
FilePath cache_directory_;
+ scoped_refptr<base::MessageLoopProxy> cache_thread_;
bool is_incognito_;
// Structures to keep track of DatabaseTasks that are in-flight.
« 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