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

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: remove log statement and fix ResponseInfo::DeepCopy 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 ba49c52e4c9a99839cca929742f0b1f501cbc85b..4db659bc4f1570b5477661fd724d5fef70d8cf8b 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"
@@ -219,7 +220,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);
davidben 2015/08/27 18:53:50 Style: no default arguments. https://google-styleg
megjablon 2015/08/27 23:11:02 Done.
// Notifications from RenderWidget.
void WasHidden();
@@ -1027,6 +1028,10 @@ class CONTENT_EXPORT RenderFrameImpl
scoped_ptr<blink::WebUSBClient> usb_client_;
+ // Whether or not to request a LoFi version of the resource or let the browser
+ // decide.
davidben 2015/08/27 18:53:50 This is the copy of the field on the RenderFrameIm
bengr 2015/08/27 21:14:07 Agreed this can/should be a bit.
megjablon 2015/08/27 23:11:02 I don't think this can be a bit. We need this for
davidben 2015/08/31 23:43:24 That won't work anyway. Navigations are not synchr
megjablon 2015/09/02 21:25:42 So you're saying we should use CreateURLRequestfor
davidben 2015/09/04 14:41:22 I'm not super familiar with the distinctions betwe
megjablon 2015/09/09 20:54:16 @nasko can you take a look?
+ 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