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 839 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
850 } | 850 } |
851 | 851 |
852 void FrameLoaderClientImpl::didChangeSandboxFlags(Frame* childFrame, | 852 void FrameLoaderClientImpl::didChangeSandboxFlags(Frame* childFrame, |
853 SandboxFlags flags) { | 853 SandboxFlags flags) { |
854 if (!m_webFrame->client()) | 854 if (!m_webFrame->client()) |
855 return; | 855 return; |
856 m_webFrame->client()->didChangeSandboxFlags( | 856 m_webFrame->client()->didChangeSandboxFlags( |
857 WebFrame::fromFrame(childFrame), static_cast<WebSandboxFlags>(flags)); | 857 WebFrame::fromFrame(childFrame), static_cast<WebSandboxFlags>(flags)); |
858 } | 858 } |
859 | 859 |
860 void FrameLoaderClientImpl::didSetFeaturePolicyHeader( | |
861 const String& headerValue) { | |
862 if (m_webFrame->client()) { | |
alexmos
2016/11/09 01:16:55
nit: { not needed
iclelland
2016/11/09 18:07:59
Done.
| |
863 m_webFrame->client()->didSetFeaturePolicyHeader(headerValue); | |
864 } | |
865 } | |
866 | |
860 void FrameLoaderClientImpl::didAddContentSecurityPolicy( | 867 void FrameLoaderClientImpl::didAddContentSecurityPolicy( |
861 const String& headerValue, | 868 const String& headerValue, |
862 ContentSecurityPolicyHeaderType type, | 869 ContentSecurityPolicyHeaderType type, |
863 ContentSecurityPolicyHeaderSource source) { | 870 ContentSecurityPolicyHeaderSource source) { |
864 if (m_webFrame->client()) { | 871 if (m_webFrame->client()) { |
865 m_webFrame->client()->didAddContentSecurityPolicy( | 872 m_webFrame->client()->didAddContentSecurityPolicy( |
866 headerValue, static_cast<WebContentSecurityPolicyType>(type), | 873 headerValue, static_cast<WebContentSecurityPolicyType>(type), |
867 static_cast<WebContentSecurityPolicySource>(source)); | 874 static_cast<WebContentSecurityPolicySource>(source)); |
868 } | 875 } |
869 } | 876 } |
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
975 WebDevToolsAgentImpl* FrameLoaderClientImpl::devToolsAgent() { | 982 WebDevToolsAgentImpl* FrameLoaderClientImpl::devToolsAgent() { |
976 return WebLocalFrameImpl::fromFrame(m_webFrame->frame()->localFrameRoot()) | 983 return WebLocalFrameImpl::fromFrame(m_webFrame->frame()->localFrameRoot()) |
977 ->devToolsAgentImpl(); | 984 ->devToolsAgentImpl(); |
978 } | 985 } |
979 | 986 |
980 KURL FrameLoaderClientImpl::overrideFlashEmbedWithHTML(const KURL& url) { | 987 KURL FrameLoaderClientImpl::overrideFlashEmbedWithHTML(const KURL& url) { |
981 return m_webFrame->client()->overrideFlashEmbedWithHTML(WebURL(url)); | 988 return m_webFrame->client()->overrideFlashEmbedWithHTML(WebURL(url)); |
982 } | 989 } |
983 | 990 |
984 } // namespace blink | 991 } // namespace blink |
OLD | NEW |