Chromium Code Reviews| OLD | NEW |
|---|---|
| (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 | |
| OLD | NEW |