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

Unified Diff: storage/browser/database/database_quota_client.h

Issue 1120553002: [storage] Replace MessageLoopProxy usage with ThreadTaskRunnerHandle (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed Review Nits Created 5 years, 8 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 | « storage/browser/blob/shareable_file_reference.cc ('k') | storage/browser/database/database_quota_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: storage/browser/database/database_quota_client.h
diff --git a/storage/browser/database/database_quota_client.h b/storage/browser/database/database_quota_client.h
index 4b168c6682d3179ca1da61fd1b8a2f3714042977..8612310678b6fcd376f1a2a385e5020bcbae0934 100644
--- a/storage/browser/database/database_quota_client.h
+++ b/storage/browser/database/database_quota_client.h
@@ -9,7 +9,7 @@
#include <string>
#include "base/memory/ref_counted.h"
-#include "base/message_loop/message_loop_proxy.h"
+#include "base/single_thread_task_runner.h"
#include "storage/browser/quota/quota_client.h"
#include "storage/browser/storage_browser_export.h"
#include "storage/common/quota/quota_types.h"
@@ -25,7 +25,7 @@ class STORAGE_EXPORT_PRIVATE DatabaseQuotaClient
: public storage::QuotaClient {
public:
DatabaseQuotaClient(
- base::MessageLoopProxy* tracker_thread,
+ base::SingleThreadTaskRunner* tracker_thread,
DatabaseTracker* tracker);
~DatabaseQuotaClient() override;
@@ -46,7 +46,7 @@ class STORAGE_EXPORT_PRIVATE DatabaseQuotaClient
bool DoesSupport(storage::StorageType type) const override;
private:
- scoped_refptr<base::MessageLoopProxy> db_tracker_thread_;
+ scoped_refptr<base::SingleThreadTaskRunner> db_tracker_thread_;
scoped_refptr<DatabaseTracker> db_tracker_; // only used on its thread
DISALLOW_COPY_AND_ASSIGN(DatabaseQuotaClient);
« no previous file with comments | « storage/browser/blob/shareable_file_reference.cc ('k') | storage/browser/database/database_quota_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698