summaryrefslogtreecommitdiff
path: root/chromium/components/offline_pages/core/prefetch/add_unique_urls_task.h
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/components/offline_pages/core/prefetch/add_unique_urls_task.h')
-rw-r--r--chromium/components/offline_pages/core/prefetch/add_unique_urls_task.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/chromium/components/offline_pages/core/prefetch/add_unique_urls_task.h b/chromium/components/offline_pages/core/prefetch/add_unique_urls_task.h
index b4009158236..39be78be37f 100644
--- a/chromium/components/offline_pages/core/prefetch/add_unique_urls_task.h
+++ b/chromium/components/offline_pages/core/prefetch/add_unique_urls_task.h
@@ -13,6 +13,7 @@
#include "components/offline_pages/core/task.h"
namespace offline_pages {
+class PrefetchDispatcher;
class PrefetchStore;
struct PrefetchURL;
@@ -34,7 +35,8 @@ class AddUniqueUrlsTask : public Task {
STORE_ERROR,
};
- AddUniqueUrlsTask(PrefetchStore* prefetch_store,
+ AddUniqueUrlsTask(PrefetchDispatcher* prefetch_dispatcher,
+ PrefetchStore* prefetch_store,
const std::string& name_space,
const std::vector<PrefetchURL>& prefetch_urls);
~AddUniqueUrlsTask() override;
@@ -44,9 +46,11 @@ class AddUniqueUrlsTask : public Task {
private:
void OnUrlsAdded(Result result);
+ // Dispatcher to call back to with results. Not owned.
+ PrefetchDispatcher* prefetch_dispatcher_;
// Prefetch store to execute against. Not owned.
PrefetchStore* prefetch_store_;
- const std::string& name_space_;
+ std::string name_space_;
std::vector<PrefetchURL> prefetch_urls_;
base::WeakPtrFactory<AddUniqueUrlsTask> weak_ptr_factory_;