OLD | NEW |
1 // Copyright 2017 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "components/offline_pages/core/prefetch/prefetch_service_impl.h" | 5 #include "components/offline_pages/core/prefetch/prefetch_service_impl.h" |
6 | 6 |
7 namespace offline_pages { | 7 namespace offline_pages { |
8 | 8 |
9 PrefetchServiceImpl::PrefetchServiceImpl() {} | 9 PrefetchServiceImpl::PrefetchServiceImpl( |
| 10 std::unique_ptr<GCMAppHandler> gcm_app_handler) |
| 11 : gcm_app_handler_(std::move(gcm_app_handler)) {} |
10 PrefetchServiceImpl::~PrefetchServiceImpl() = default; | 12 PrefetchServiceImpl::~PrefetchServiceImpl() = default; |
11 | 13 |
12 void PrefetchServiceImpl::AddCandidatePrefetchURLs( | 14 void PrefetchServiceImpl::AddCandidatePrefetchURLs( |
13 const std::vector<PrefetchURL>& url_suggestions) { | 15 const std::vector<PrefetchURL>& url_suggestions) { |
14 NOTIMPLEMENTED(); | 16 NOTIMPLEMENTED(); |
15 } | 17 } |
16 void PrefetchServiceImpl::RemoveAllUnprocessedPrefetchURLs( | 18 void PrefetchServiceImpl::RemoveAllUnprocessedPrefetchURLs( |
17 const std::string& name_space) { | 19 const std::string& name_space) { |
18 NOTIMPLEMENTED(); | 20 NOTIMPLEMENTED(); |
19 } | 21 } |
20 | 22 |
21 void PrefetchServiceImpl::RemovePrefetchURLsByClientId( | 23 void PrefetchServiceImpl::RemovePrefetchURLsByClientId( |
22 const ClientId& client_id) { | 24 const ClientId& client_id) { |
23 NOTIMPLEMENTED(); | 25 NOTIMPLEMENTED(); |
24 } | 26 } |
25 | 27 |
26 void PrefetchServiceImpl::BeginBackgroundTask( | 28 void PrefetchServiceImpl::BeginBackgroundTask( |
27 std::unique_ptr<ScopedBackgroundTask> task) { | 29 std::unique_ptr<ScopedBackgroundTask> task) { |
28 NOTIMPLEMENTED(); | 30 NOTIMPLEMENTED(); |
29 } | 31 } |
30 | 32 |
31 void PrefetchServiceImpl::StopBackgroundTask(ScopedBackgroundTask* task) { | 33 void PrefetchServiceImpl::StopBackgroundTask(ScopedBackgroundTask* task) { |
32 NOTIMPLEMENTED(); | 34 NOTIMPLEMENTED(); |
33 } | 35 } |
34 | 36 |
35 void PrefetchServiceImpl::Shutdown() {} | 37 void PrefetchServiceImpl::Shutdown() {} |
36 | 38 |
37 } // namespace offline_pages | 39 } // namespace offline_pages |
OLD | NEW |