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

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: using UserData and adressing nasko 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..d68a48d72481f0f0d63d225c5279455f182191a1 100644
--- a/content/common/navigation_params.h
+++ b/content/common/navigation_params.h
@@ -11,6 +11,7 @@
#include "base/time/time.h"
#include "content/common/content_export.h"
#include "content/common/frame_message_enums.h"
+#include "content/public/common/data_reduction_proxy_lofi_user_data.h"
#include "content/public/common/page_state.h"
#include "content/public/common/referrer.h"
#include "ui/base/page_transition_types.h"
@@ -257,6 +258,10 @@ struct CONTENT_EXPORT RequestNavigationParams {
// needs to notify the browser that the clearing was succesful when the
// navigation commits.
bool should_clear_history_list;
+
+ // Whether or not to request a LoFi version of the document or let the browser
+ // decide.
+ LoFiState lofi_state;
};
// Helper struct keeping track in one place of all the parameters the browser

Powered by Google App Engine
This is Rietveld 408576698