Chromium Code Reviews| Index: components/precache/core/precache_manifest_delegate.h |
| diff --git a/components/precache/core/precache_manifest_delegate.h b/components/precache/core/precache_manifest_delegate.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..e6c5ed34021302974d6a9b7b930ded5381526f1b |
| --- /dev/null |
| +++ b/components/precache/core/precache_manifest_delegate.h |
| @@ -0,0 +1,24 @@ |
| +// Copyright 2017 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef COMPONENTS_PRECACHE_CORE_PRECACHE_MANIFEST_DELEGATE_H_ |
| +#define COMPONENTS_PRECACHE_CORE_PRECACHE_MANIFEST_DELEGATE_H_ |
| + |
| +#include <string> |
| + |
| +#include "components/precache/core/proto/precache.pb.h" |
| + |
| +namespace precache { |
| + |
| +// Delegate to inform the manifest events. |
| +class PrecacheManifestDelegate { |
|
Benoit L
2017/03/20 16:51:53
Seems to me that this is conceptually more a Preca
alexilin
2017/03/21 09:50:35
Done.
|
| + public: |
| + // Called when a new manifest is successfully fetched and parsed. |
| + virtual void OnManifestFetched(const std::string& host, |
| + const PrecacheManifest& manifest) = 0; |
| +}; |
| + |
| +} // namespace precache |
| + |
| +#endif // COMPONENTS_PRECACHE_CORE_PRECACHE_MANIFEST_DELEGATE_H_ |