Chromium Code Reviews

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

Issue 2738953002: Rename WebParsedFeaturePolicyHeader to WebParsedFeaturePolicy (Closed)
Patch Set: ParsedFeaturePolicyHeader => ParsedFeaturePolicy (content version) Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff |
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "web/WebRemoteFrameImpl.h" 5 #include "web/WebRemoteFrameImpl.h"
6 6
7 #include "bindings/core/v8/DOMWrapperWorld.h" 7 #include "bindings/core/v8/DOMWrapperWorld.h"
8 #include "bindings/core/v8/WindowProxy.h" 8 #include "bindings/core/v8/WindowProxy.h"
9 #include "core/dom/Fullscreen.h" 9 #include "core/dom/Fullscreen.h"
10 #include "core/dom/RemoteSecurityContext.h" 10 #include "core/dom/RemoteSecurityContext.h"
(...skipping 406 matching lines...)
417 static_cast<SandboxFlags>(flags)); 417 static_cast<SandboxFlags>(flags));
418 } 418 }
419 419
420 void WebRemoteFrameImpl::setReplicatedName(const WebString& name, 420 void WebRemoteFrameImpl::setReplicatedName(const WebString& name,
421 const WebString& uniqueName) const { 421 const WebString& uniqueName) const {
422 DCHECK(frame()); 422 DCHECK(frame());
423 frame()->tree().setPrecalculatedName(name, uniqueName); 423 frame()->tree().setPrecalculatedName(name, uniqueName);
424 } 424 }
425 425
426 void WebRemoteFrameImpl::setReplicatedFeaturePolicyHeader( 426 void WebRemoteFrameImpl::setReplicatedFeaturePolicyHeader(
427 const WebParsedFeaturePolicyHeader& parsedHeader) const { 427 const WebParsedFeaturePolicy& parsedHeader) const {
428 if (RuntimeEnabledFeatures::featurePolicyEnabled()) { 428 if (RuntimeEnabledFeatures::featurePolicyEnabled()) {
429 WebFeaturePolicy* parentFeaturePolicy = nullptr; 429 WebFeaturePolicy* parentFeaturePolicy = nullptr;
430 if (parent()) { 430 if (parent()) {
431 Frame* parentFrame = frame()->client()->parent(); 431 Frame* parentFrame = frame()->client()->parent();
432 parentFeaturePolicy = parentFrame->securityContext()->getFeaturePolicy(); 432 parentFeaturePolicy = parentFrame->securityContext()->getFeaturePolicy();
433 } 433 }
434 frame()->securityContext()->initializeFeaturePolicy(parsedHeader, 434 frame()->securityContext()->initializeFeaturePolicy(parsedHeader,
435 parentFeaturePolicy); 435 parentFeaturePolicy);
436 } 436 }
437 } 437 }
(...skipping 93 matching lines...)
531 } 531 }
532 532
533 WebRemoteFrameImpl::WebRemoteFrameImpl(WebTreeScopeType scope, 533 WebRemoteFrameImpl::WebRemoteFrameImpl(WebTreeScopeType scope,
534 WebRemoteFrameClient* client) 534 WebRemoteFrameClient* client)
535 : WebRemoteFrame(scope), 535 : WebRemoteFrame(scope),
536 m_frameClient(RemoteFrameClientImpl::create(this)), 536 m_frameClient(RemoteFrameClientImpl::create(this)),
537 m_client(client), 537 m_client(client),
538 m_selfKeepAlive(this) {} 538 m_selfKeepAlive(this) {}
539 539
540 } // namespace blink 540 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/WebRemoteFrameImpl.h ('k') | third_party/WebKit/public/platform/Platform.h » ('j') | no next file with comments »

Powered by Google App Engine