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

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: A couple of minor changes. 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 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 namespace offline_pages {
8
9 AddUniqueUrlsTask::AddUniqueUrlsTask(
10 PrefetchStore* store,
11 const std::string& name_space,
12 const std::vector<PrefetchURL>& prefetch_urls)
13 : store_(store),
14 name_space_(name_space),
15 prefetch_urls_(prefetch_urls),
16 weak_ptr_factory_(this) {}
17
18 AddUniqueUrlsTask::~AddUniqueUrlsTask() {}
19
20 void AddUniqueUrlsTask::Run() {
dewittj 2017/05/23 20:02:20 Task::TaskComplete is never called?
carlosk 2017/05/24 20:57:26 Done.
21 store_->CreateItemsForUniqueUrls(
22 name_space_, prefetch_urls_,
23 PrefetchStore::CreateItemsForUniqueUrlsCallback());
dewittj 2017/05/23 20:02:20 This just runs a void callback, doesn't make sense
carlosk 2017/05/24 20:57:26 Now that we need to call TaskComplete we need the
24 }
25
26 } // namespace offline_pages
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698