| Index: components/offline_pages/core/prefetch/prefetch_utils.h
|
| diff --git a/components/offline_pages/core/prefetch/prefetch_utils.h b/components/offline_pages/core/prefetch/prefetch_utils.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..caf6d851e9bd5f6d0b076f9682cbbe91424a0cb3
|
| --- /dev/null
|
| +++ b/components/offline_pages/core/prefetch/prefetch_utils.h
|
| @@ -0,0 +1,27 @@
|
| +// 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_OFFLINE_PAGES_CORE_PREFETCH_PREFETCH_UTILS_H_
|
| +#define COMPONENTS_OFFLINE_PAGES_CORE_PREFETCH_PREFETCH_UTILS_H_
|
| +
|
| +#include <vector>
|
| +#include "components/offline_pages/core/prefetch/prefetch_types.h"
|
| +
|
| +namespace offline_pages {
|
| +
|
| +namespace proto {
|
| +class Any;
|
| +} // namespace proto
|
| +
|
| +// The fully qualified type name for PageBundle defined in proto.
|
| +extern const char kPageBundleTypeURL[];
|
| +
|
| +// Parse PageBundle data stored as Any proto data. True is returned when the
|
| +// parsing succeeds and the result pages are stored in |pages|.
|
| +bool ParsePageBundleInAnyData(const proto::Any& any_data,
|
| + std::vector<RenderPageInfo>* pages);
|
| +
|
| +} // namespace offline_pages
|
| +
|
| +#endif // COMPONENTS_OFFLINE_PAGES_CORE_PREFETCH_PREFETCH_UTILS_H_
|
|
|