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

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

Issue 1957783002: Replicate Content-Security-Policy into remote frame proxies. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed CR feedback from dcheng@. Created 4 years, 7 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 918 matching lines...) Expand 10 before | Expand all | Expand 10 after
929 m_webFrame->client()->didUpdateToUniqueOrigin(m_webFrame->getSecurityOrigin( ).isPotentiallyTrustworthy()); 929 m_webFrame->client()->didUpdateToUniqueOrigin(m_webFrame->getSecurityOrigin( ).isPotentiallyTrustworthy());
930 } 930 }
931 931
932 void FrameLoaderClientImpl::didChangeSandboxFlags(Frame* childFrame, SandboxFlag s flags) 932 void FrameLoaderClientImpl::didChangeSandboxFlags(Frame* childFrame, SandboxFlag s flags)
933 { 933 {
934 if (!m_webFrame->client()) 934 if (!m_webFrame->client())
935 return; 935 return;
936 m_webFrame->client()->didChangeSandboxFlags(WebFrame::fromFrame(childFrame), static_cast<WebSandboxFlags>(flags)); 936 m_webFrame->client()->didChangeSandboxFlags(WebFrame::fromFrame(childFrame), static_cast<WebSandboxFlags>(flags));
937 } 937 }
938 938
939 void FrameLoaderClientImpl::didAddContentSecurityPolicy(
940 const String& headerValue,
941 ContentSecurityPolicyHeaderType type,
942 ContentSecurityPolicyHeaderSource source)
943 {
944 if (m_webFrame->client()) {
945 m_webFrame->client()->didAddContentSecurityPolicy(
946 headerValue,
947 static_cast<WebContentSecurityPolicyType>(type),
948 static_cast<WebContentSecurityPolicySource>(source));
949 }
950 }
951
939 void FrameLoaderClientImpl::didChangeFrameOwnerProperties(HTMLFrameElementBase* frameElement) 952 void FrameLoaderClientImpl::didChangeFrameOwnerProperties(HTMLFrameElementBase* frameElement)
940 { 953 {
941 if (!m_webFrame->client()) 954 if (!m_webFrame->client())
942 return; 955 return;
943 956
944 m_webFrame->client()->didChangeFrameOwnerProperties(WebFrame::fromFrame(fram eElement->contentFrame()), WebFrameOwnerProperties(frameElement->scrollingMode() , frameElement->marginWidth(), frameElement->marginHeight())); 957 m_webFrame->client()->didChangeFrameOwnerProperties(WebFrame::fromFrame(fram eElement->contentFrame()), WebFrameOwnerProperties(frameElement->scrollingMode() , frameElement->marginWidth(), frameElement->marginHeight()));
945 } 958 }
946 959
947 void FrameLoaderClientImpl::dispatchWillOpenWebSocket(WebSocketHandle* handle) 960 void FrameLoaderClientImpl::dispatchWillOpenWebSocket(WebSocketHandle* handle)
948 { 961 {
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
1034 } 1047 }
1035 1048
1036 WebEffectiveConnectionType FrameLoaderClientImpl::getEffectiveConnectionType() 1049 WebEffectiveConnectionType FrameLoaderClientImpl::getEffectiveConnectionType()
1037 { 1050 {
1038 if (m_webFrame->client()) 1051 if (m_webFrame->client())
1039 return m_webFrame->client()->getEffectiveConnectionType(); 1052 return m_webFrame->client()->getEffectiveConnectionType();
1040 return WebEffectiveConnectionType::TypeUnknown; 1053 return WebEffectiveConnectionType::TypeUnknown;
1041 } 1054 }
1042 1055
1043 } // namespace blink 1056 } // 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