| Index: content/common/navigation_params.h
|
| diff --git a/content/common/navigation_params.h b/content/common/navigation_params.h
|
| index 37b1af035401ee8e9ab394831888b68c6519e4e9..6852c8b9b4d8a82ebbdd7c404b2454305516857c 100644
|
| --- a/content/common/navigation_params.h
|
| +++ b/content/common/navigation_params.h
|
| @@ -22,6 +22,17 @@ class RefCountedMemory;
|
|
|
| namespace content {
|
|
|
| +// The LoFi state which determines whether to add the LoFi header. Must stay in
|
| +// sync with the enum in data_reduction_proxy_lofi_helper.h.
|
| +enum LoFiState {
|
| + // Request a LoFi version of the resource.
|
| + LOFI_ON = 0,
|
| + // Request a normal (non-LoFi) version of the resource.
|
| + LOFI_OFF,
|
| + // Let the browser process decide whether or not to request the LoFi version.
|
| + LOFI_DEFAULT,
|
| +};
|
| +
|
| // PlzNavigate
|
| // Helper function to determine if the navigation to |url| should make a request
|
| // to the network stack. A request should not be sent for data URLs, JavaScript
|
| @@ -89,6 +100,10 @@ struct CONTENT_EXPORT CommonNavigationParams {
|
| // History URL for use in Blink's SubstituteData.
|
| // Is only used with data: URLs.
|
| GURL history_url_for_data_url;
|
| +
|
| + // Whether or not to request a LoFi version of the document or let the browser
|
| + // decide.
|
| + LoFiState lofi_state;
|
| };
|
|
|
| // Provided by the renderer ----------------------------------------------------
|
|
|