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 #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 |
OLD | NEW |