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

Unified Diff: chrome/browser/browsing_data/browsing_data_quota_helper.h

Issue 1117583003: [chrome/browser/browsing_data] Replace MessageLoopProxy usage with ThreadTaskRunnerHandle (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
Index: chrome/browser/browsing_data/browsing_data_quota_helper.h
diff --git a/chrome/browser/browsing_data/browsing_data_quota_helper.h b/chrome/browser/browsing_data/browsing_data_quota_helper.h
index c6883edb8b42801b45959e901fbd3dca02b8306c..1d3beea0a6bbd1064d81ae4b0f3cf0cfff067cac 100644
--- a/chrome/browser/browsing_data/browsing_data_quota_helper.h
+++ b/chrome/browser/browsing_data/browsing_data_quota_helper.h
@@ -12,6 +12,7 @@
#include "base/memory/ref_counted.h"
#include "base/message_loop/message_loop_proxy.h"
Bernhard Bauer 2015/04/29 09:25:02 This include can be removed.
Pranay 2015/05/04 03:28:21 Done.
Pranay 2015/05/04 03:30:31 Done.
#include "base/sequenced_task_runner_helpers.h"
+#include "base/single_thread_task_runner.h"
Bernhard Bauer 2015/04/29 09:25:02 You can forward-declare SingleThreadTaskRunner ins
Pranay 2015/05/04 03:28:21 Done.
Pranay 2015/05/04 03:30:31 Done.
#include "storage/common/quota/quota_types.h"
class BrowsingDataQuotaHelper;
@@ -67,13 +68,13 @@ class BrowsingDataQuotaHelper
virtual void RevokeHostQuota(const std::string& host) = 0;
protected:
- explicit BrowsingDataQuotaHelper(base::MessageLoopProxy* io_thread_);
+ explicit BrowsingDataQuotaHelper(base::SingleThreadTaskRunner* io_thread_);
virtual ~BrowsingDataQuotaHelper();
private:
friend class base::DeleteHelper<BrowsingDataQuotaHelper>;
friend struct BrowsingDataQuotaHelperDeleter;
- scoped_refptr<base::MessageLoopProxy> io_thread_;
+ scoped_refptr<base::SingleThreadTaskRunner> io_thread_;
DISALLOW_COPY_AND_ASSIGN(BrowsingDataQuotaHelper);
};

Powered by Google App Engine
This is Rietveld 408576698