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

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

Issue 2520223002: Replicate a parsed feature policy representation so it doesn't need to be parsed in the browser pro… (Closed)
Patch Set: Replicate a parsed feature policy representation so it doesn't need to be parsed in the browser pro… Created 4 years 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 854 matching lines...) Expand 10 before | Expand all | Expand 10 after
865 865
866 void FrameLoaderClientImpl::didChangeSandboxFlags(Frame* childFrame, 866 void FrameLoaderClientImpl::didChangeSandboxFlags(Frame* childFrame,
867 SandboxFlags flags) { 867 SandboxFlags flags) {
868 if (!m_webFrame->client()) 868 if (!m_webFrame->client())
869 return; 869 return;
870 m_webFrame->client()->didChangeSandboxFlags( 870 m_webFrame->client()->didChangeSandboxFlags(
871 WebFrame::fromFrame(childFrame), static_cast<WebSandboxFlags>(flags)); 871 WebFrame::fromFrame(childFrame), static_cast<WebSandboxFlags>(flags));
872 } 872 }
873 873
874 void FrameLoaderClientImpl::didSetFeaturePolicyHeader( 874 void FrameLoaderClientImpl::didSetFeaturePolicyHeader(
875 const String& headerValue) { 875 const WebParsedFeaturePolicy& parsedHeader) {
876 if (m_webFrame->client()) 876 if (m_webFrame->client())
877 m_webFrame->client()->didSetFeaturePolicyHeader(headerValue); 877 m_webFrame->client()->didSetFeaturePolicyHeader(parsedHeader);
878 } 878 }
879 879
880 void FrameLoaderClientImpl::didAddContentSecurityPolicy( 880 void FrameLoaderClientImpl::didAddContentSecurityPolicy(
881 const String& headerValue, 881 const String& headerValue,
882 ContentSecurityPolicyHeaderType type, 882 ContentSecurityPolicyHeaderType type,
883 ContentSecurityPolicyHeaderSource source) { 883 ContentSecurityPolicyHeaderSource source) {
884 if (m_webFrame->client()) { 884 if (m_webFrame->client()) {
885 m_webFrame->client()->didAddContentSecurityPolicy( 885 m_webFrame->client()->didAddContentSecurityPolicy(
886 headerValue, static_cast<WebContentSecurityPolicyType>(type), 886 headerValue, static_cast<WebContentSecurityPolicyType>(type),
887 static_cast<WebContentSecurityPolicySource>(source)); 887 static_cast<WebContentSecurityPolicySource>(source));
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
995 WebDevToolsAgentImpl* FrameLoaderClientImpl::devToolsAgent() { 995 WebDevToolsAgentImpl* FrameLoaderClientImpl::devToolsAgent() {
996 return WebLocalFrameImpl::fromFrame(m_webFrame->frame()->localFrameRoot()) 996 return WebLocalFrameImpl::fromFrame(m_webFrame->frame()->localFrameRoot())
997 ->devToolsAgentImpl(); 997 ->devToolsAgentImpl();
998 } 998 }
999 999
1000 KURL FrameLoaderClientImpl::overrideFlashEmbedWithHTML(const KURL& url) { 1000 KURL FrameLoaderClientImpl::overrideFlashEmbedWithHTML(const KURL& url) {
1001 return m_webFrame->client()->overrideFlashEmbedWithHTML(WebURL(url)); 1001 return m_webFrame->client()->overrideFlashEmbedWithHTML(WebURL(url));
1002 } 1002 }
1003 1003
1004 } // namespace blink 1004 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/FrameLoaderClientImpl.h ('k') | third_party/WebKit/Source/web/WebRemoteFrameImpl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698