Upstream version 9.38.198.0
[platform/framework/web/crosswalk.git] / src / chrome / browser / safe_browsing / malware_details_history.h
index feea944..214b498 100644 (file)
@@ -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).