Chromium Code Reviews| Index: components/precache/content/precache_manager.h |
| diff --git a/components/precache/content/precache_manager.h b/components/precache/content/precache_manager.h |
| index afd5e6c6e737de5006cfab24431c96ad684654da..8ae2f185c1ed51133a483c8654a9a8a4d4ed99f0 100644 |
| --- a/components/precache/content/precache_manager.h |
| +++ b/components/precache/content/precache_manager.h |
| @@ -55,6 +55,8 @@ namespace precache { |
| class PrecacheDatabase; |
| class PrecacheUnfinishedWork; |
| +class PrecacheManifest; |
| +class PrecacheManifestDelegate; |
| extern const char kPrecacheFieldTrialName[]; |
| @@ -80,6 +82,7 @@ class PrecacheManager : public KeyedService, |
| const history::HistoryService* history_service, |
| const data_reduction_proxy::DataReductionProxySettings* |
| data_reduction_proxy_settings, |
| + PrecacheManifestDelegate* precache_manifest_delegate, |
| const base::FilePath& db_path, |
| std::unique_ptr<PrecacheDatabase> precache_database); |
| ~PrecacheManager() override; |
| @@ -153,6 +156,8 @@ class PrecacheManager : public KeyedService, |
| // From PrecacheFetcher::PrecacheDelegate. |
| void OnDone() override; |
| + void OnManifestFetched(const std::string& host, |
| + const PrecacheManifest& manifest) override; |
| // Registers the precache synthetic field trial for users whom the precache |
| // task was run recently. |last_precache_time| is the last time precache task |
| @@ -219,6 +224,10 @@ class PrecacheManager : public KeyedService, |
| const data_reduction_proxy::DataReductionProxySettings* const |
| data_reduction_proxy_settings_; |
| + // The PrecacheManifestDelegate corresponding to the browser context. Used to |
| + // notify browser about new manifest available. May be null. |
|
Benoit L
2017/03/20 16:51:53
nit: notify the browser about a new available mani
alexilin
2017/03/21 09:50:35
Done.
|
| + PrecacheManifestDelegate* precache_manifest_delegate_; |
| + |
| // The PrecacheFetcher used to precache resources. Should only be used on the |
| // UI thread. |
| std::unique_ptr<PrecacheFetcher> precache_fetcher_; |