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

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

Issue 2879013002: Create skeleton for the Prefetching store and initial pipeline step. (Closed)
Patch Set: Made construction params a cost&. Created 3 years, 7 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.cc
diff --git a/components/offline_pages/core/prefetch/add_unique_urls_task.cc b/components/offline_pages/core/prefetch/add_unique_urls_task.cc
new file mode 100644
index 0000000000000000000000000000000000000000..58f46a0ed03a00df250c1276d8ed5439ac2aeef2
--- /dev/null
+++ b/components/offline_pages/core/prefetch/add_unique_urls_task.cc
@@ -0,0 +1,25 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "components/offline_pages/core/prefetch/add_unique_urls_task.h"
+
+#include "base/bind.h"
+
+namespace offline_pages {
+
+AddUniqueUrlsTask::AddUniqueUrlsTask(
+ PrefetchStore* store,
+ const std::vector<PrefetchURL>& prefetch_urls)
+ : prefetch_store_(store),
+ prefetch_urls_(prefetch_urls),
+ weak_ptr_factory_(this) {}
+
+AddUniqueUrlsTask::~AddUniqueUrlsTask() {}
+
+void AddUniqueUrlsTask::Run() {
+ CHECK(prefetch_store_);
+ TaskComplete();
+}
+
+} // namespace offline_pages

Powered by Google App Engine
This is Rietveld 408576698