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

Unified Diff: chrome/browser/safe_browsing/safe_browsing_blocking_page.h

Issue 351553004: Port HistoryService::GetVisibleVisitCountToHost to CancelableTaskTracker (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix Linux ASAN tests Created 6 years, 6 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/safe_browsing/safe_browsing_blocking_page.h
diff --git a/chrome/browser/safe_browsing/safe_browsing_blocking_page.h b/chrome/browser/safe_browsing/safe_browsing_blocking_page.h
index 6b9f232eca39b6ba8b44458df9026b42f04e03cf..b5ac288a785ff312ccd2202e80151ac0f8b63f72 100644
--- a/chrome/browser/safe_browsing/safe_browsing_blocking_page.h
+++ b/chrome/browser/safe_browsing/safe_browsing_blocking_page.h
@@ -33,6 +33,7 @@
#include <vector>
#include "base/gtest_prod_util.h"
+#include "base/task/cancelable_task_tracker.h"
#include "base/time/time.h"
#include "chrome/browser/history/history_service.h"
#include "chrome/browser/safe_browsing/ui_manager.h"
@@ -124,10 +125,7 @@ class SafeBrowsingBlockingPage : public content::InterstitialPageDelegate {
void RecordUserAction(BlockingPageEvent event);
// Used to query the HistoryService to see if the URL is in history. For UMA.
- void OnGotHistoryCount(HistoryService::Handle handle,
- bool success,
- int num_visits,
- base::Time first_visit);
+ void OnGotHistoryCount(bool success, int num_visits, base::Time first_visit);
// Records the time it took for the user to react to the
// interstitial. We won't double-count if this method is called
@@ -221,7 +219,7 @@ class SafeBrowsingBlockingPage : public content::InterstitialPageDelegate {
// How many times is this same URL in history? Used for histogramming.
int num_visits_;
- CancelableRequestConsumer request_consumer_;
+ base::CancelableTaskTracker request_tracker_;
DISALLOW_COPY_AND_ASSIGN(SafeBrowsingBlockingPage);
};

Powered by Google App Engine
This is Rietveld 408576698