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 #ifndef COMPONENTS_OFFLINE_PAGES_CORE_PREFETCH_PREFETCH_SERVICE_IMPL_H_ |
| 6 #define COMPONENTS_OFFLINE_PAGES_CORE_PREFETCH_PREFETCH_SERVICE_IMPL_H_ |
| 7 |
| 8 #include <vector> |
| 9 |
| 10 #include "components/offline_pages/core/prefetch/prefetch_service.h" |
| 11 #include "url/gurl.h" |
| 12 |
| 13 namespace offline_pages { |
| 14 |
| 15 class PrefetchServiceImpl : public PrefetchService { |
| 16 public: |
| 17 PrefetchServiceImpl(); |
| 18 ~PrefetchServiceImpl() override; |
| 19 |
| 20 // PrefetchService implementation: |
| 21 void AddCandidatePrefetchURLs( |
| 22 const std::vector<PrefetchURL>& suggested_urls) override; |
| 23 void RemoveAllUnprocessedPrefetchURLs(const std::string& name_space) override; |
| 24 void RemovePrefetchURLsByClientId(const ClientId& client_id) override; |
| 25 |
| 26 // KeyedService implementation: |
| 27 void Shutdown() override; |
| 28 |
| 29 private: |
| 30 DISALLOW_COPY_AND_ASSIGN(PrefetchServiceImpl); |
| 31 }; |
| 32 |
| 33 } // namespace offline_pages |
| 34 |
| 35 #endif // COMPONENTS_OFFLINE_PAGES_CORE_PREFETCH_PREFETCH_SERVICE_IMPL_H_ |
OLD | NEW |