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

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

Issue 349153006: Port HistoryService::QueryRedirects{From,To} to CancelableTaskTracker (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase 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/malware_details_history.h
diff --git a/chrome/browser/safe_browsing/malware_details_history.h b/chrome/browser/safe_browsing/malware_details_history.h
index feea944ba7b0c9367999cf41adade3c7fb594400..214b498916aa0c1a79caa366e84e29b576a003d7 100644
--- a/chrome/browser/safe_browsing/malware_details_history.h
+++ b/chrome/browser/safe_browsing/malware_details_history.h
@@ -15,6 +15,7 @@
#include "base/memory/linked_ptr.h"
#include "base/memory/ref_counted.h"
#include "base/sequenced_task_runner_helpers.h"
+#include "base/task/cancelable_task_tracker.h"
#include "chrome/browser/history/history_service.h"
#include "content/public/browser/browser_thread.h"
#include "content/public/browser/notification_observer.h"
@@ -59,17 +60,15 @@ class MalwareDetailsRedirectsCollector
void StartGetRedirects(const std::vector<GURL>& urls);
void GetRedirects(const GURL& url);
- void OnGotQueryRedirectsTo(HistoryService::Handle handle,
- GURL url,
- bool success,
- history::RedirectList* redirect_list);
+ void OnGotQueryRedirectsTo(const GURL& url,
+ const history::RedirectList* redirect_list);
// Posts the callback method back to IO thread when redirects collecting
// is all done.
void AllDone();
Profile* profile_;
- CancelableRequestConsumer request_consumer_;
+ base::CancelableTaskTracker request_tracker_;
// Method we call when we are done. The caller must be alive for the
// whole time, we are modifying its state (see above).
« no previous file with comments | « chrome/browser/safe_browsing/download_protection_service.cc ('k') | chrome/browser/safe_browsing/malware_details_history.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698