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 #ifndef COMPONENTS_OFFLINE_PAGES_CORE_PREFETCH_PREFETCH_SERVICE_H_ | 5 #ifndef COMPONENTS_OFFLINE_PAGES_CORE_PREFETCH_PREFETCH_SERVICE_H_ |
6 #define COMPONENTS_OFFLINE_PAGES_CORE_PREFETCH_PREFETCH_SERVICE_H_ | 6 #define COMPONENTS_OFFLINE_PAGES_CORE_PREFETCH_PREFETCH_SERVICE_H_ |
7 | 7 |
8 #include "components/keyed_service/core/keyed_service.h" | 8 #include "components/keyed_service/core/keyed_service.h" |
9 | 9 |
10 namespace offline_pages { | 10 namespace offline_pages { |
11 | |
12 class PrefetchDispatcher; | 11 class PrefetchDispatcher; |
12 class PrefetchStore; | |
13 | 13 |
14 // Main class and entry point for the Offline Pages Prefetching feature, that | 14 // Main class and entry point for the Offline Pages Prefetching feature, that |
15 // controls the lifetime of all major subcomponents of the prefetching system. | 15 // controls the lifetime of all major subcomponents of the prefetching system. |
16 class PrefetchService : public KeyedService { | 16 class PrefetchService : public KeyedService { |
17 public: | 17 public: |
18 ~PrefetchService() override = default; | 18 ~PrefetchService() override = default; |
19 | 19 |
20 virtual PrefetchDispatcher* GetDispatcher() = 0; | 20 virtual PrefetchDispatcher* GetDispatcher() = 0; |
fgorski
2017/05/30 17:21:45
Why are these public?
How do you intend to use the
carlosk
2017/06/01 01:49:59
The service is supposed to be the ownership holder
| |
21 virtual PrefetchStore* GetStore() = 0; | |
Dmitry Titov
2017/05/26 23:05:06
I think it would be more consistent to either have
carlosk
2017/06/01 01:49:59
Done.
| |
21 }; | 22 }; |
22 | 23 |
23 } // namespace offline_pages | 24 } // namespace offline_pages |
24 | 25 |
25 #endif // COMPONENTS_OFFLINE_PAGES_CORE_PREFETCH_PREFETCH_SERVICE_H_ | 26 #endif // COMPONENTS_OFFLINE_PAGES_CORE_PREFETCH_PREFETCH_SERVICE_H_ |
OLD | NEW |