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

Unified Diff: chrome/browser/ssl/ssl_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/ssl/ssl_blocking_page.h
diff --git a/chrome/browser/ssl/ssl_blocking_page.h b/chrome/browser/ssl/ssl_blocking_page.h
index 605115854af52bd05e0c62adbebd1dbd44160c1d..f9782cd65c3433ab2474f7a11b8e0e15928666d7 100644
--- a/chrome/browser/ssl/ssl_blocking_page.h
+++ b/chrome/browser/ssl/ssl_blocking_page.h
@@ -10,6 +10,7 @@
#include "base/callback.h"
#include "base/strings/string16.h"
+#include "base/task/cancelable_task_tracker.h"
#include "base/time/time.h"
#include "chrome/browser/history/history_service.h"
#include "content/public/browser/interstitial_page_delegate.h"
@@ -84,10 +85,7 @@ class SSLBlockingPage : public content::InterstitialPageDelegate,
std::string GetHTMLContentsV2();
// 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);
// content::NotificationObserver:
virtual void Observe(
@@ -111,7 +109,7 @@ class SSLBlockingPage : public content::InterstitialPageDelegate,
// How many times is this same URL in history?
int num_visits_;
// Used for getting num_visits_.
- CancelableRequestConsumer request_consumer_;
+ base::CancelableTaskTracker request_tracker_;
// Is captive portal detection enabled?
bool captive_portal_detection_enabled_;
// Did the probe complete before the interstitial was closed?
« no previous file with comments | « chrome/browser/safe_browsing/safe_browsing_blocking_page.cc ('k') | chrome/browser/ssl/ssl_blocking_page.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698