Chromium Code Reviews| 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_H_ | |
| 6 #define COMPONENTS_OFFLINE_PAGES_CORE_PREFETCH_PREFETCH_SERVICE_H_ | |
| 7 | |
| 8 #include "components/keyed_service/core/keyed_service.h" | |
| 9 | |
| 10 class GURL; | |
| 11 | |
| 12 namespace offline_pages { | |
| 13 | |
| 14 class PrefetchService : public KeyedService { | |
|
carlosk
2017/04/11 17:31:36
Please add a comment explaining what this class re
dewittj
2017/04/11 21:25:49
Done.
| |
| 15 public: | |
| 16 ~PrefetchService() override = default; | |
| 17 | |
| 18 // This will be called by OfflinePageSuggestionsObserver when suggestions | |
|
carlosk
2017/04/11 17:31:36
nit: the potential caller should not be mentioned
dewittj
2017/04/11 21:25:48
Done.
| |
| 19 // that are not already saved into the OfflinePageModel are provided. | |
| 20 virtual void OnNewURLSuggestions(std::vector<GURL> suggested_urls) = 0; | |
|
Dmitry Titov
2017/04/11 01:17:14
Not a request, but for consideration: Lets say at
dewittj
2017/04/11 21:25:49
Done.
| |
| 21 | |
| 22 // This will be called when all existing suggestions are no longer considered | |
| 23 // valid. The prefetch service should remove any suggestions that have not | |
| 24 // yet started downloading. | |
| 25 virtual void RemoveAllUnprocessedURLSuggestions() = 0; | |
| 26 }; | |
| 27 | |
| 28 } // namespace offline_pages | |
| 29 | |
| 30 #endif // COMPONENTS_OFFLINE_PAGES_CORE_PREFETCH_PREFETCH_SERVICE_IMPL_H_ | |
| OLD | NEW |