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

Unified Diff: components/offline_pages/core/prefetch/add_unique_urls_task.h

Issue 2920083002: Prefetching: Introduce store commands abstractions to be used by tasks. (Closed)
Patch Set: Minor changes Created 3 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: components/offline_pages/core/prefetch/add_unique_urls_task.h
diff --git a/components/offline_pages/core/prefetch/add_unique_urls_task.h b/components/offline_pages/core/prefetch/add_unique_urls_task.h
index c7a116131b057ad8ab9cf5f29e44cb57fc333c24..c265cd3ba9ff2f6975fb6df2d7028fc00e7f688f 100644
--- a/components/offline_pages/core/prefetch/add_unique_urls_task.h
+++ b/components/offline_pages/core/prefetch/add_unique_urls_task.h
@@ -5,13 +5,12 @@
#ifndef COMPONENTS_OFFLINE_PAGES_CORE_PREFETCH_ADD_UNIQUE_URLS_TASK_H_
#define COMPONENTS_OFFLINE_PAGES_CORE_PREFETCH_ADD_UNIQUE_URLS_TASK_H_
+#include <string>
#include <vector>
#include "base/memory/weak_ptr.h"
-#include "components/offline_pages/core/prefetch/prefetch_store.h"
#include "components/offline_pages/core/prefetch/prefetch_types.h"
#include "components/offline_pages/core/task.h"
-#include "url/gurl.h"
namespace offline_pages {
@@ -26,14 +25,16 @@ namespace offline_pages {
// from the store.
class AddUniqueUrlsTask : public Task {
public:
- AddUniqueUrlsTask(PrefetchStore* store,
+ AddUniqueUrlsTask(const std::string& name_space,
const std::vector<PrefetchURL>& prefetch_urls);
~AddUniqueUrlsTask() override;
void Run() override;
private:
- PrefetchStore* prefetch_store_;
+ void OnUrlsAdded(int added_entry_count);
+
+ const std::string& name_space_;
std::vector<PrefetchURL> prefetch_urls_;
base::WeakPtrFactory<AddUniqueUrlsTask> weak_ptr_factory_;
« no previous file with comments | « components/offline_pages/core/prefetch/README.md ('k') | components/offline_pages/core/prefetch/add_unique_urls_task.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698