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

Side by Side Diff: third_party/WebKit/Source/web/FrameLoaderClientImpl.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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009, 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2009, 2012 Google Inc. All rights reserved.
3 * Copyright (C) 2011 Apple Inc. All rights reserved. 3 * Copyright (C) 2011 Apple Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are 6 * modification, are permitted provided that the following conditions are
7 * met: 7 * met:
8 * 8 *
9 * * Redistributions of source code must retain the above copyright 9 * * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 172
173 unsigned backForwardLength() override; 173 unsigned backForwardLength() override;
174 174
175 void suddenTerminationDisablerChanged(bool present, SuddenTerminationDisable rType) override; 175 void suddenTerminationDisablerChanged(bool present, SuddenTerminationDisable rType) override;
176 176
177 BlameContext* frameBlameContext() override; 177 BlameContext* frameBlameContext() override;
178 178
179 LinkResource* createServiceWorkerLinkResource(HTMLLinkElement*) override; 179 LinkResource* createServiceWorkerLinkResource(HTMLLinkElement*) override;
180 180
181 WebEffectiveConnectionType getEffectiveConnectionType() override; 181 WebEffectiveConnectionType getEffectiveConnectionType() override;
182 void setEffectiveConnectionTypeOverride(blink::WebEffectiveConnectionType) o verride;
183 void clearEffectiveConnectionTypeOverride() override;
182 184
183 KURL overrideFlashEmbedWithHTML(const KURL&) override; 185 KURL overrideFlashEmbedWithHTML(const KURL&) override;
184 186
185 private: 187 private:
186 explicit FrameLoaderClientImpl(WebLocalFrameImpl*); 188 explicit FrameLoaderClientImpl(WebLocalFrameImpl*);
187 189
188 bool isFrameLoaderClientImpl() const override { return true; } 190 bool isFrameLoaderClientImpl() const override { return true; }
189 WebDevToolsAgentImpl* devToolsAgent(); 191 WebDevToolsAgentImpl* devToolsAgent();
190 192
191 // The WebFrame that owns this object and manages its lifetime. Therefore, 193 // The WebFrame that owns this object and manages its lifetime. Therefore,
192 // the web frame object is guaranteed to exist. 194 // the web frame object is guaranteed to exist.
193 Member<WebLocalFrameImpl> m_webFrame; 195 Member<WebLocalFrameImpl> m_webFrame;
194 196
195 String m_userAgent; 197 String m_userAgent;
196 }; 198 };
197 199
198 DEFINE_TYPE_CASTS(FrameLoaderClientImpl, FrameLoaderClient, client, client->isFr ameLoaderClientImpl(), client.isFrameLoaderClientImpl()); 200 DEFINE_TYPE_CASTS(FrameLoaderClientImpl, FrameLoaderClient, client, client->isFr ameLoaderClientImpl(), client.isFrameLoaderClientImpl());
199 201
200 } // namespace blink 202 } // namespace blink
201 203
202 #endif 204 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698