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

Side by Side Diff: third_party/WebKit/Source/web/FrameLoaderClientImpl.cpp

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 980 matching lines...) Expand 10 before | Expand all | Expand 10 after
991 return ServiceWorkerLinkResource::create(owner); 991 return ServiceWorkerLinkResource::create(owner);
992 } 992 }
993 993
994 WebEffectiveConnectionType FrameLoaderClientImpl::getEffectiveConnectionType() 994 WebEffectiveConnectionType FrameLoaderClientImpl::getEffectiveConnectionType()
995 { 995 {
996 if (m_webFrame->client()) 996 if (m_webFrame->client())
997 return m_webFrame->client()->getEffectiveConnectionType(); 997 return m_webFrame->client()->getEffectiveConnectionType();
998 return WebEffectiveConnectionType::TypeUnknown; 998 return WebEffectiveConnectionType::TypeUnknown;
999 } 999 }
1000 1000
1001 void FrameLoaderClientImpl::setEffectiveConnectionTypeOverride(blink::WebEffecti veConnectionType effectiveType)
1002 {
1003 if (m_webFrame->client())
1004 m_webFrame->client()->setEffectiveConnectionTypeOverride(effectiveType);
1005 }
1006 void FrameLoaderClientImpl::clearEffectiveConnectionTypeOverride()
1007 {
1008 if (m_webFrame->client())
1009 m_webFrame->client()->clearEffectiveConnectionTypeOverride();
1010 }
1011
1001 WebDevToolsAgentImpl* FrameLoaderClientImpl::devToolsAgent() 1012 WebDevToolsAgentImpl* FrameLoaderClientImpl::devToolsAgent()
1002 { 1013 {
1003 return WebLocalFrameImpl::fromFrame(m_webFrame->frame()->localFrameRoot())-> devToolsAgentImpl(); 1014 return WebLocalFrameImpl::fromFrame(m_webFrame->frame()->localFrameRoot())-> devToolsAgentImpl();
1004 } 1015 }
1005 1016
1006 KURL FrameLoaderClientImpl::overrideFlashEmbedWithHTML(const KURL& url) 1017 KURL FrameLoaderClientImpl::overrideFlashEmbedWithHTML(const KURL& url)
1007 { 1018 {
1008 return m_webFrame->client()->overrideFlashEmbedWithHTML(WebURL(url)); 1019 return m_webFrame->client()->overrideFlashEmbedWithHTML(WebURL(url));
1009 } 1020 }
1010 1021
1011 } // namespace blink 1022 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698