#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"
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).