| Index: third_party/WebKit/public/platform/WebURLRequest.h
|
| diff --git a/third_party/WebKit/public/platform/WebURLRequest.h b/third_party/WebKit/public/platform/WebURLRequest.h
|
| index da255461511c29b90c397fbf30b9d9da2781360d..0d84beebecdad3d1509cbb3510db7a15576017c1 100644
|
| --- a/third_party/WebKit/public/platform/WebURLRequest.h
|
| +++ b/third_party/WebKit/public/platform/WebURLRequest.h
|
| @@ -29,7 +29,7 @@
|
| */
|
|
|
| #ifndef WebURLRequest_h
|
| -#define WebURLRequest_h
|
| +#define WebURLRequest_hf
|
|
|
| #include "WebAddressSpace.h"
|
| #include "WebCommon.h"
|
| @@ -136,13 +136,17 @@ class WebURLRequest {
|
| ReportIntent, // Report metrics with UI action displayed intent.
|
| };
|
|
|
| - // The LoFi state which determines whether to request a Lo-Fi version of the
|
| - // resource.
|
| - enum LoFiState {
|
| - LoFiUnspecified, // Let the browser process decide whether or not to
|
| - // request the Lo-Fi version.
|
| - LoFiOff, // Request a normal (non-Lo-Fi) version of the resource.
|
| - LoFiOn, // Request a Lo-Fi version of the resource.
|
| + // The Previews state which determines whether to request a Preview version of
|
| + // the resource.
|
| + enum PreviewsState {
|
| + PreviewsUnspecified = 1 << 0, // Let the browser process decide whether or
|
| + // not to request Preview types.
|
| + ServerLoFiOn = 1 << 1, // Request a Lo-Fi version of the resource
|
| + // from the server.
|
| + ClientLoFiOn = 1 << 2, // Request a Lo-Fi version of the resource
|
| + // from the client.
|
| + PreviewsOff = 1 << 3 // Request a normal (non-Preview) version of
|
| + // the resource.
|
| };
|
|
|
| // Indicates which types of ServiceWorkers should skip handling this request.
|
| @@ -285,10 +289,10 @@ class WebURLRequest {
|
| BLINK_PLATFORM_EXPORT FetchRedirectMode getFetchRedirectMode() const;
|
| BLINK_PLATFORM_EXPORT void setFetchRedirectMode(FetchRedirectMode);
|
|
|
| - // The LoFi state which determines whether to request a Lo-Fi version of the
|
| - // resource.
|
| - BLINK_PLATFORM_EXPORT LoFiState getLoFiState() const;
|
| - BLINK_PLATFORM_EXPORT void setLoFiState(LoFiState);
|
| + // The Previews state which determines whether to request a Preview version of
|
| + // the resource.
|
| + BLINK_PLATFORM_EXPORT int getPreviewsState() const;
|
| + BLINK_PLATFORM_EXPORT void setPreviewsState(int);
|
|
|
| // Extra data associated with the underlying resource request. Resource
|
| // requests can be copied. If non-null, each copy of a resource requests
|
|
|