Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(298)

Side by Side Diff: components/offline_pages/core/prefetch/prefetch_test_store.h

Issue 2879013002: Create skeleton for the Prefetching store and initial pipeline step. (Closed)
Patch Set: A couple of minor changes. Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698