Chromium Code Reviews| Index: content/common/navigation_params.h |
| diff --git a/content/common/navigation_params.h b/content/common/navigation_params.h |
| index cb3048ce88874fa498679dfb495cc14c6302445b..de7913d0c9638b35070edac0cfa91ca34ef19ae3 100644 |
| --- a/content/common/navigation_params.h |
| +++ b/content/common/navigation_params.h |
| @@ -26,18 +26,6 @@ |
| namespace content { |
| -// The LoFi state which determines whether to add the Lo-Fi header. |
| -enum LoFiState { |
| - // Let the browser process decide whether or not to request the Lo-Fi version. |
| - LOFI_UNSPECIFIED = 0, |
| - |
| - // Request a normal (non-Lo-Fi) version of the resource. |
| - LOFI_OFF, |
| - |
| - // Request a Lo-Fi version of the resource. |
| - LOFI_ON, |
| -}; |
| - |
| // 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 JavaScript URLs or |
| @@ -65,7 +53,7 @@ struct CONTENT_EXPORT CommonNavigationParams { |
| FrameMsg_UILoadMetricsReportType::Value report_type, |
| const GURL& base_url_for_data_url, |
| const GURL& history_url_for_data_url, |
| - LoFiState lofi_state, |
| + int previews_state, |
|
nasko
2016/12/08 22:19:33
PreviewsState
megjablon
2016/12/09 20:35:54
Done.
|
| const base::TimeTicks& navigation_start, |
| std::string method, |
| const scoped_refptr<ResourceRequestBodyImpl>& post_data); |
| @@ -116,9 +104,9 @@ struct CONTENT_EXPORT CommonNavigationParams { |
| // 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; |
| + // Bitmask that has whether or not to request a Preview version of the |
| + // document for various preview types or let the browser decide. |
| + int previews_state; |
|
nasko
2016/12/08 22:19:33
PreviewsState
megjablon
2016/12/09 20:35:54
Done.
|
| // The navigationStart time exposed through the Navigation Timing API to JS. |
| // If this is for a browser-initiated navigation, this can override the |