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

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

Issue 2879013002: Create skeleton for the Prefetching store and initial pipeline step. (Closed)
Patch Set: Dispatcher instance is now injected into Service. 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
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 #ifndef COMPONENTS_OFFLINE_PAGES_CORE_PREFETCH_PREFETCH_SERVICE_IMPL_H_ 5 #ifndef COMPONENTS_OFFLINE_PAGES_CORE_PREFETCH_PREFETCH_SERVICE_IMPL_H_
6 #define COMPONENTS_OFFLINE_PAGES_CORE_PREFETCH_PREFETCH_SERVICE_IMPL_H_ 6 #define COMPONENTS_OFFLINE_PAGES_CORE_PREFETCH_PREFETCH_SERVICE_IMPL_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
11 #include "components/offline_pages/core/prefetch/prefetch_service.h" 11 #include "components/offline_pages/core/prefetch/prefetch_service.h"
12 12
13 namespace offline_pages { 13 namespace offline_pages {
14 14
15 class PrefetchServiceImpl : public PrefetchService { 15 class PrefetchServiceImpl : public PrefetchService {
16 public: 16 public:
17 PrefetchServiceImpl(); 17 PrefetchServiceImpl(std::unique_ptr<PrefetchStore> store,
18 std::unique_ptr<PrefetchDispatcher> dispatcher);
18 ~PrefetchServiceImpl() override; 19 ~PrefetchServiceImpl() override;
19 20
20 // PrefetchService implementation: 21 // PrefetchService implementation:
21 PrefetchDispatcher* GetDispatcher() override; 22 PrefetchDispatcher* GetDispatcher() override;
23 PrefetchStore* GetStore() override;
22 24
23 // KeyedService implementation: 25 // KeyedService implementation:
24 void Shutdown() override; 26 void Shutdown() override;
25 27
26 private: 28 private:
29 std::unique_ptr<PrefetchStore> store_;
Dmitry Titov 2017/05/26 23:05:06 prefetch_store_
carlosk 2017/06/01 01:49:59 Done, and below too.
27 std::unique_ptr<PrefetchDispatcher> dispatcher_; 30 std::unique_ptr<PrefetchDispatcher> dispatcher_;
28 31
29 DISALLOW_COPY_AND_ASSIGN(PrefetchServiceImpl); 32 DISALLOW_COPY_AND_ASSIGN(PrefetchServiceImpl);
30 }; 33 };
31 34
32 } // namespace offline_pages 35 } // namespace offline_pages
33 36
34 #endif // COMPONENTS_OFFLINE_PAGES_CORE_PREFETCH_PREFETCH_SERVICE_IMPL_H_ 37 #endif // COMPONENTS_OFFLINE_PAGES_CORE_PREFETCH_PREFETCH_SERVICE_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698