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

Side by Side Diff: third_party/WebKit/Source/core/loader/FrameLoaderClient.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) 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. All rights reserved.
3 * Copyright (C) 2012 Google Inc. All rights reserved. 3 * Copyright (C) 2012 Google 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 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 8 *
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. 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 251 matching lines...) Expand 10 before | Expand all | Expand 10 after
262 enum SuddenTerminationDisablerType { 262 enum SuddenTerminationDisablerType {
263 BeforeUnloadHandler, 263 BeforeUnloadHandler,
264 UnloadHandler, 264 UnloadHandler,
265 }; 265 };
266 virtual void suddenTerminationDisablerChanged(bool present, SuddenTerminatio nDisablerType) { } 266 virtual void suddenTerminationDisablerChanged(bool present, SuddenTerminatio nDisablerType) { }
267 267
268 virtual LinkResource* createServiceWorkerLinkResource(HTMLLinkElement*) { re turn nullptr; } 268 virtual LinkResource* createServiceWorkerLinkResource(HTMLLinkElement*) { re turn nullptr; }
269 269
270 // Effective connection type when this frame was loaded. 270 // Effective connection type when this frame was loaded.
271 virtual WebEffectiveConnectionType getEffectiveConnectionType() { return Web EffectiveConnectionType::TypeUnknown; } 271 virtual WebEffectiveConnectionType getEffectiveConnectionType() { return Web EffectiveConnectionType::TypeUnknown; }
272 virtual void setEffectiveConnectionTypeOverride(blink::WebEffectiveConnectio nType) {}
273 virtual void clearEffectiveConnectionTypeOverride() {}
272 274
273 // Overwrites the given URL to use an HTML5 embed if possible. 275 // Overwrites the given URL to use an HTML5 embed if possible.
274 // An empty URL is returned if the URL is not overriden. 276 // An empty URL is returned if the URL is not overriden.
275 virtual KURL overrideFlashEmbedWithHTML(const KURL&) { return KURL(); } 277 virtual KURL overrideFlashEmbedWithHTML(const KURL&) { return KURL(); }
276 }; 278 };
277 279
278 } // namespace blink 280 } // namespace blink
279 281
280 #endif // FrameLoaderClient_h 282 #endif // FrameLoaderClient_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698