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

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: addressing comments 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 4c58e59a74d60e8b1494b4bf1ada13b6e800022f..a9e1069007d9a91e75da7cc718c017311f6ee609 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"
@@ -216,7 +217,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);
// Notifications from RenderWidget.
void WasHidden();
@@ -1025,6 +1026,9 @@ class CONTENT_EXPORT RenderFrameImpl
scoped_ptr<blink::WebUSBClient> usb_client_;
+ // Whether or not to use Lo-Fi for this frame or let the browser decide.
+ 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