Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1995)

Unified Diff: content/common/navigation_params.h

Issue 2484633004: Change Lo-Fi bool to bitmask to support multiple Previews types (Closed)
Patch Set: fix ContentResourceProviderTest Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/common/frame_messages.h ('k') | content/common/navigation_params.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/navigation_params.h
diff --git a/content/common/navigation_params.h b/content/common/navigation_params.h
index 86a5e7e4f6fefd42ce29a05c54d744214e80c0c1..e30261f8512d3a6e9a86b606cb36ced88ee795d1 100644
--- a/content/common/navigation_params.h
+++ b/content/common/navigation_params.h
@@ -18,6 +18,7 @@
#include "content/common/frame_message_enums.h"
#include "content/common/resource_request_body_impl.h"
#include "content/public/common/page_state.h"
+#include "content/public/common/previews_state.h"
#include "content/public/common/referrer.h"
#include "content/public/common/request_context_type.h"
#include "content/public/common/resource_response.h"
@@ -27,18 +28,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 +54,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,
+ PreviewsState previews_state,
const base::TimeTicks& navigation_start,
std::string method,
const scoped_refptr<ResourceRequestBodyImpl>& post_data);
@@ -113,9 +102,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.
+ PreviewsState previews_state;
// The navigationStart time exposed through the Navigation Timing API to JS.
// If this is for a browser-initiated navigation, this can override the
« no previous file with comments | « content/common/frame_messages.h ('k') | content/common/navigation_params.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698