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

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 most CR feedback from mkwst@, alexmos@ and 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 1021 matching lines...) Expand 10 before | Expand all | Expand 10 after
1032 if (!m_webFrame->client()) 1032 if (!m_webFrame->client())
1033 return nullptr; 1033 return nullptr;
1034 return m_webFrame->client()->frameBlameContext(); 1034 return m_webFrame->client()->frameBlameContext();
1035 } 1035 }
1036 1036
1037 LinkResource* FrameLoaderClientImpl::createServiceWorkerLinkResource(HTMLLinkEle ment* owner) 1037 LinkResource* FrameLoaderClientImpl::createServiceWorkerLinkResource(HTMLLinkEle ment* owner)
1038 { 1038 {
1039 return ServiceWorkerLinkResource::create(owner); 1039 return ServiceWorkerLinkResource::create(owner);
1040 } 1040 }
1041 1041
1042 void FrameLoaderClientImpl::didAddContentSecurityPolicy(
1043 const String& headerValue,
1044 ContentSecurityPolicyHeaderType type,
1045 ContentSecurityPolicyHeaderSource source)
1046 {
1047 if (m_webFrame->client()) {
1048 m_webFrame->client()->didAddContentSecurityPolicy(
1049 headerValue,
1050 static_cast<WebContentSecurityPolicyType>(type),
1051 static_cast<WebContentSecurityPolicySource>(source));
1052 }
1053 }
1054
1042 } // namespace blink 1055 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698