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

Unified Diff: content/common/navigation_params.h

Issue 1310743003: Consistently use LoFi for an entire page (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: mmenke comments Created 5 years, 3 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
Index: content/common/navigation_params.h
diff --git a/content/common/navigation_params.h b/content/common/navigation_params.h
index 37b1af035401ee8e9ab394831888b68c6519e4e9..079dc94f9dfe4b1057dede71a05ec8a4db58ae0a 100644
--- a/content/common/navigation_params.h
+++ b/content/common/navigation_params.h
@@ -22,6 +22,16 @@ class RefCountedMemory;
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.
nasko 2015/10/01 18:28:57 nit: Empty line between the enum value and the com
megjablon 2015/10/01 19:43:25 Done.
+ 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 data URLs, JavaScript
@@ -89,6 +99,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;
nasko 2015/10/01 18:28:57 It might be good to add clamy@, as an FYI on this
megjablon 2015/10/01 19:43:25 Done.
};
// Provided by the renderer ----------------------------------------------------

Powered by Google App Engine
This is Rietveld 408576698