OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2016 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 CONTENT_PUBLIC_COMMON_PREVIEWS_TYPE_H_ | |
6 #define CONTENT_PUBLIC_COMMON_PREVIEWS_TYPE_H_ | |
7 | |
8 #include "content/common/content_export.h" | |
9 | |
10 namespace content { | |
11 | |
12 // The Previews state which determines whether to request a Preview version of | |
13 // the resource. Previews are optimizations that change the format and | |
14 // content of web pages to improve data savings and / or performance. This enum | |
15 // determines which Preview types to request. | |
nasko
2016/12/12 23:05:41
nit: Previews?
megjablon
2016/12/13 03:03:14
Done.
| |
16 enum PreviewsState { | |
17 PREVIEWS_UNSPECIFIED = 0, // Let the browser process decide whether or | |
18 // not to request Preview types. | |
19 SERVER_LOFI_ON = 1 << 0, // Request a Lo-Fi version of the resource | |
20 // from the server. | |
21 CLIENT_LOFI_ON = 1 << 1, // Request a Lo-Fi version of the resource | |
22 // from the client. | |
23 PREVIEWS_OFF = 1 << 2, // Request a normal (non-Preview) version of | |
24 // the resource. | |
25 MAX_PREVIEWS_STATE = 1 << 3 | |
nasko
2016/12/12 23:05:41
You could use LAST pattern, which will be equal to
megjablon
2016/12/13 03:03:14
Done.
| |
26 }; | |
27 | |
28 } // namespace content | |
29 | |
30 #endif // CONTENT_PUBLIC_COMMON_PREVIEWS_TYPE_H_ | |
OLD | NEW |