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

Side by Side Diff: chrome/common/prerender_types.h

Issue 2179903005: [Prerender] Change IPC from bool to enum for more prerender modes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@prefetchProto
Patch Set: Rebase Created 4 years, 4 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
« no previous file with comments | « chrome/common/prerender_messages.h ('k') | chrome/renderer/chrome_render_frame_observer.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_COMMON_PRERENDER_TYPES_H_ 5 #ifndef CHROME_COMMON_PRERENDER_TYPES_H_
6 #define CHROME_COMMON_PRERENDER_TYPES_H_ 6 #define CHROME_COMMON_PRERENDER_TYPES_H_
7 7
8 namespace prerender { 8 namespace prerender {
9 9
10 // PrerenderRelType is a bitfield since multiple rel attributes can be set 10 // PrerenderRelType is a bitfield since multiple rel attributes can be set
11 // on the same link. Must be the same as blink::WebPrerenderRelType. 11 // on the same link. Must be the same as blink::WebPrerenderRelType.
12 enum PrerenderRelType { 12 enum PrerenderRelType {
13 PrerenderRelTypePrerender = 0x1, 13 PrerenderRelTypePrerender = 0x1,
14 PrerenderRelTypeNext = 0x2, 14 PrerenderRelTypeNext = 0x2,
15 }; 15 };
16 16
17 enum PrerenderMode {
18 NO_PRERENDER = 0,
19 FULL_PRERENDER = 1, // Full rendering of the page.
20 PREFETCH_ONLY = 2, // Prefetch some network resources to warm up the cache.
21 PRERENDER_MODE_COUNT = 3,
22 };
23
17 } // namespace prerender 24 } // namespace prerender
18 25
19 #endif // CHROME_COMMON_PRERENDER_TYPES_H_ 26 #endif // CHROME_COMMON_PRERENDER_TYPES_H_
OLDNEW
« no previous file with comments | « chrome/common/prerender_messages.h ('k') | chrome/renderer/chrome_render_frame_observer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698