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_TEST_STORE_H_ |
| 6 #define COMPONENTS_OFFLINE_PAGES_CORE_PREFETCH_PREFETCH_TEST_STORE_H_ |
| 7 |
| 8 #include "components/offline_pages/core/prefetch/prefetch_store.h" |
| 9 |
| 10 namespace offline_pages { |
| 11 |
| 12 // A PrefetchStore implementation that keeps all stored data in memory. |
| 13 class PrefetchTestStore : public PrefetchStore { |
| 14 public: |
| 15 PrefetchTestStore() = default; |
| 16 ~PrefetchTestStore() override = default; |
| 17 |
| 18 // PrefetchStore implementation. |
| 19 void CreateItemsForUniqueUrls( |
| 20 const std::string& name_space, |
| 21 const std::vector<PrefetchURL>& prefetch_urls, |
| 22 const PrefetchStore::CreateItemsForUniqueUrlsCallback& callback) override; |
| 23 void Reset(const PrefetchStore::ResetCallback& callback) override; |
| 24 }; |
| 25 |
| 26 } // namespace offline_pages |
| 27 |
| 28 #endif // COMPONENTS_OFFLINE_PAGES_CORE_PREFETCH_PREFETCH_TEST_STORE_H_ |
OLD | NEW |