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

Unified Diff: content/browser/appcache/appcache_service_impl.h

Issue 2940023002: TaskScheduler: migrate appcache database over to use it. (Closed)
Patch Set: comments + rebase Created 3 years, 5 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
Index: content/browser/appcache/appcache_service_impl.h
diff --git a/content/browser/appcache/appcache_service_impl.h b/content/browser/appcache/appcache_service_impl.h
index ea78f6910e9c79c071320a9e4c82c635e33ae039..372e96e8488134e3bebd1109384c6b6e280c497c 100644
--- a/content/browser/appcache/appcache_service_impl.h
+++ b/content/browser/appcache/appcache_service_impl.h
@@ -50,9 +50,10 @@ class AppCacheStorage;
// during Reinitialization.
class CONTENT_EXPORT AppCacheStorageReference
: public base::RefCounted<AppCacheStorageReference> {
-public:
+ public:
AppCacheStorage* storage() const { return storage_.get(); }
-private:
+
+ private:
friend class AppCacheServiceImpl;
friend class base::RefCounted<AppCacheStorageReference>;
AppCacheStorageReference(std::unique_ptr<AppCacheStorage> storage);
@@ -88,7 +89,6 @@ class CONTENT_EXPORT AppCacheServiceImpl
void Initialize(
const base::FilePath& cache_directory,
- const scoped_refptr<base::SingleThreadTaskRunner>& db_thread,
const scoped_refptr<base::SingleThreadTaskRunner>& cache_thread);
void AddObserver(Observer* observer) {
@@ -201,7 +201,7 @@ class CONTENT_EXPORT AppCacheServiceImpl
void Reinitialize();
base::FilePath cache_directory_;
- scoped_refptr<base::SingleThreadTaskRunner> db_thread_;
+ scoped_refptr<base::SequencedTaskRunner> db_task_runner_;
scoped_refptr<base::SingleThreadTaskRunner> cache_thread_;
AppCachePolicy* appcache_policy_;
AppCacheQuotaClient* quota_client_;
« no previous file with comments | « content/browser/appcache/appcache_response_unittest.cc ('k') | content/browser/appcache/appcache_service_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698