OLD | NEW |
---|---|
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 | |
Nico
2016/08/02 20:54:39
nit: include a trailing ,
droger
2016/08/03 07:50:45
Done.
| |
22 }; | |
23 | |
17 } // namespace prerender | 24 } // namespace prerender |
18 | 25 |
19 #endif // CHROME_COMMON_PRERENDER_TYPES_H_ | 26 #endif // CHROME_COMMON_PRERENDER_TYPES_H_ |
OLD | NEW |