| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |