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

Side by Side 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, 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "components/offline_pages/core/prefetch/add_unique_urls_task.h"
6
7 #include "base/bind.h"
8
9 namespace offline_pages {
10
11 AddUniqueUrlsTask::AddUniqueUrlsTask(
12 PrefetchStore* store,
13 const std::vector<PrefetchURL>& prefetch_urls)
14 : prefetch_store_(store),
15 prefetch_urls_(prefetch_urls),
16 weak_ptr_factory_(this) {}
17
18 AddUniqueUrlsTask::~AddUniqueUrlsTask() {}
19
20 void AddUniqueUrlsTask::Run() {
21 CHECK(prefetch_store_);
22 TaskComplete();
23 }
24
25 } // namespace offline_pages
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698