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

Unified Diff: content/renderer/render_frame_impl.h

Issue 2338623004: Add Blink setting to block doc.written scripts on 2g-like networks (Closed)
Patch Set: Nit Created 4 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/renderer/render_frame_impl.h
diff --git a/content/renderer/render_frame_impl.h b/content/renderer/render_frame_impl.h
index 91475903159ac756c749f9a16b56ee8e959dd371..1f05fbac716da0602d0a1acb9279bb2288a08078 100644
--- a/content/renderer/render_frame_impl.h
+++ b/content/renderer/render_frame_impl.h
@@ -545,6 +545,9 @@ class CONTENT_EXPORT RenderFrameImpl
void didChangeThemeColor() override;
void dispatchLoad() override;
blink::WebEffectiveConnectionType getEffectiveConnectionType() override;
+ void setEffectiveConnectionTypeOverride(
+ blink::WebEffectiveConnectionType effective_type) override;
+ void clearEffectiveConnectionTypeOverride() override;
void didChangeSelection(bool is_empty_selection) override;
bool handleCurrentKeyboardEvent() override;
blink::WebColorChooser* createColorChooser(
@@ -1233,6 +1236,10 @@ class CONTENT_EXPORT RenderFrameImpl
// Effective connection type when the document of this frame was fetched.
blink::WebEffectiveConnectionType effective_connection_type_;
+ // Overridden effective connection type used for blink internals.
+ blink::WebEffectiveConnectionType effective_connection_type_override_;
+ bool effective_connection_type_overridden_;
+
// Whether or not this RenderFrame is currently pasting.
bool is_pasting_;

Powered by Google App Engine
This is Rietveld 408576698