Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(36)

Side by Side Diff: components/offline_pages/core/prefetch/prefetch_utils.h

Issue 2873383004: [Offline Prefetch] Send GeneratePageBundleRequest to the server (Closed)
Patch Set: Address more feedback Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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_UTILS_H_
6 #define COMPONENTS_OFFLINE_PAGES_CORE_PREFETCH_PREFETCH_UTILS_H_
7
8 #include <vector>
9 #include "components/offline_pages/core/prefetch/prefetch_types.h"
10
11 namespace offline_pages {
12
13 namespace proto {
14 class Any;
15 } // namespace proto
16
17 // The fully qualified type name for PageBundle defined in proto.
18 extern const char kPageBundleTypeURL[];
19
20 // Parse PageBundle data stored as Any proto data. True is returned when the
21 // parsing succeeds and the result pages are stored in |pages|.
22 bool ParsePageBundleInAnyData(const proto::Any& any_data,
23 std::vector<RenderPageInfo>* pages);
24
25 } // namespace offline_pages
26
27 #endif // COMPONENTS_OFFLINE_PAGES_CORE_PREFETCH_PREFETCH_UTILS_H_
OLDNEW
« no previous file with comments | « components/offline_pages/core/prefetch/prefetch_types.cc ('k') | components/offline_pages/core/prefetch/prefetch_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698