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

Unified Diff: content/renderer/render_frame_impl.h

Issue 1310743003: Consistently use LoFi for an entire page (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: test fixes Created 5 years, 4 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/renderer/render_frame_impl.h
diff --git a/content/renderer/render_frame_impl.h b/content/renderer/render_frame_impl.h
index cdeba40c86a8054de3aef1cb5afe6164cba72bc4..dda799d70e69c9ae1ec9746a6831eaad6293c886 100644
--- a/content/renderer/render_frame_impl.h
+++ b/content/renderer/render_frame_impl.h
@@ -18,6 +18,7 @@
#include "content/common/accessibility_mode_enums.h"
#include "content/common/frame_message_enums.h"
#include "content/common/mojo/service_registry_impl.h"
+#include "content/common/navigation_params.h"
#include "content/public/common/console_message_level.h"
#include "content/public/common/javascript_message_type.h"
#include "content/public/common/referrer.h"
@@ -208,7 +209,7 @@ class CONTENT_EXPORT RenderFrameImpl
// This method must be called after the frame has been added to the frame
// tree. It creates all objects that depend on the frame being at its proper
// spot.
- void Initialize();
+ void Initialize(LoFiState lofi_state = LOFI_DEFAULT);
// Notifications from RenderWidget.
void WasHidden();
@@ -1006,6 +1007,10 @@ class CONTENT_EXPORT RenderFrameImpl
scoped_ptr<blink::WebBluetooth> bluetooth_;
+ // Whether or not the LoFi header should be added to the request or if the
+ // decision should be left up to the network-quality-based triggering logic.
bengr 2015/08/25 00:00:02 I wouldn't get into how the browser process decide
megjablon 2015/08/25 20:29:47 Done.
+ LoFiState lofi_state_;
+
#if defined(ENABLE_WEBVR)
// The VR dispatcher attached to the frame, lazily initialized.
scoped_ptr<VRDispatcher> vr_dispatcher_;

Powered by Google App Engine
This is Rietveld 408576698