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

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

Issue 2648423002: Rename feature policy classes. (Closed)
Patch Set: Rebase Created 3 years, 10 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 // 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 "core/dom/Fullscreen.h" 7 #include "core/dom/Fullscreen.h"
8 #include "core/dom/RemoteSecurityContext.h" 8 #include "core/dom/RemoteSecurityContext.h"
9 #include "core/dom/SecurityContext.h" 9 #include "core/dom/SecurityContext.h"
10 #include "core/frame/FrameView.h" 10 #include "core/frame/FrameView.h"
(...skipping 409 matching lines...) Expand 10 before | Expand all | Expand 10 after
420 static_cast<SandboxFlags>(flags)); 420 static_cast<SandboxFlags>(flags));
421 } 421 }
422 422
423 void WebRemoteFrameImpl::setReplicatedName(const WebString& name, 423 void WebRemoteFrameImpl::setReplicatedName(const WebString& name,
424 const WebString& uniqueName) const { 424 const WebString& uniqueName) const {
425 DCHECK(frame()); 425 DCHECK(frame());
426 frame()->tree().setPrecalculatedName(name, uniqueName); 426 frame()->tree().setPrecalculatedName(name, uniqueName);
427 } 427 }
428 428
429 void WebRemoteFrameImpl::setReplicatedFeaturePolicyHeader( 429 void WebRemoteFrameImpl::setReplicatedFeaturePolicyHeader(
430 const WebParsedFeaturePolicy& parsedHeader) const { 430 const WebParsedFeaturePolicyHeader& parsedHeader) const {
431 if (RuntimeEnabledFeatures::featurePolicyEnabled()) { 431 if (RuntimeEnabledFeatures::featurePolicyEnabled()) {
432 FeaturePolicy* parentFeaturePolicy = nullptr; 432 FeaturePolicy* parentFeaturePolicy = nullptr;
433 if (parent()) { 433 if (parent()) {
434 Frame* parentFrame = frame()->client()->parent(); 434 Frame* parentFrame = frame()->client()->parent();
435 parentFeaturePolicy = parentFrame->securityContext()->getFeaturePolicy(); 435 parentFeaturePolicy = parentFrame->securityContext()->getFeaturePolicy();
436 } 436 }
437 frame()->securityContext()->setFeaturePolicyFromHeader(parsedHeader, 437 frame()->securityContext()->setFeaturePolicyFromHeader(parsedHeader,
438 parentFeaturePolicy); 438 parentFeaturePolicy);
439 } 439 }
440 } 440 }
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
525 } 525 }
526 526
527 WebRemoteFrameImpl::WebRemoteFrameImpl(WebTreeScopeType scope, 527 WebRemoteFrameImpl::WebRemoteFrameImpl(WebTreeScopeType scope,
528 WebRemoteFrameClient* client) 528 WebRemoteFrameClient* client)
529 : WebRemoteFrame(scope), 529 : WebRemoteFrame(scope),
530 m_frameClient(RemoteFrameClientImpl::create(this)), 530 m_frameClient(RemoteFrameClientImpl::create(this)),
531 m_client(client), 531 m_client(client),
532 m_selfKeepAlive(this) {} 532 m_selfKeepAlive(this) {}
533 533
534 } // namespace blink 534 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/WebRemoteFrameImpl.h ('k') | third_party/WebKit/public/platform/WebFeaturePolicy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698