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

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

Issue 1723753002: Make Document::isSecureContext() work for OOPIFs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: alexmos comments Created 4 years, 9 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 896 matching lines...) Expand 10 before | Expand all | Expand 10 after
907 m_webFrame->client()->didChangeName(name, uniqueName); 907 m_webFrame->client()->didChangeName(name, uniqueName);
908 } 908 }
909 909
910 void FrameLoaderClientImpl::didEnforceStrictMixedContentChecking() 910 void FrameLoaderClientImpl::didEnforceStrictMixedContentChecking()
911 { 911 {
912 if (!m_webFrame->client()) 912 if (!m_webFrame->client())
913 return; 913 return;
914 m_webFrame->client()->didEnforceStrictMixedContentChecking(); 914 m_webFrame->client()->didEnforceStrictMixedContentChecking();
915 } 915 }
916 916
917 void FrameLoaderClientImpl::didUpdateToUniqueOrigin()
918 {
919 if (!m_webFrame->client())
920 return;
921 ASSERT(m_webFrame->securityOrigin().isUnique());
922 m_webFrame->client()->didUpdateToUniqueOrigin(m_webFrame->securityOrigin().i sPotentiallyTrustworthy());
923 }
924
917 void FrameLoaderClientImpl::didChangeSandboxFlags(Frame* childFrame, SandboxFlag s flags) 925 void FrameLoaderClientImpl::didChangeSandboxFlags(Frame* childFrame, SandboxFlag s flags)
918 { 926 {
919 if (!m_webFrame->client()) 927 if (!m_webFrame->client())
920 return; 928 return;
921 m_webFrame->client()->didChangeSandboxFlags(WebFrame::fromFrame(childFrame), static_cast<WebSandboxFlags>(flags)); 929 m_webFrame->client()->didChangeSandboxFlags(WebFrame::fromFrame(childFrame), static_cast<WebSandboxFlags>(flags));
922 } 930 }
923 931
924 void FrameLoaderClientImpl::didChangeFrameOwnerProperties(HTMLFrameElementBase* frameElement) 932 void FrameLoaderClientImpl::didChangeFrameOwnerProperties(HTMLFrameElementBase* frameElement)
925 { 933 {
926 if (!m_webFrame->client()) 934 if (!m_webFrame->client())
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
1023 1031
1024 void FrameLoaderClientImpl::suddenTerminationDisablerChanged(bool present, Sudde nTerminationDisablerType type) 1032 void FrameLoaderClientImpl::suddenTerminationDisablerChanged(bool present, Sudde nTerminationDisablerType type)
1025 { 1033 {
1026 if (m_webFrame->client()) { 1034 if (m_webFrame->client()) {
1027 m_webFrame->client()->suddenTerminationDisablerChanged( 1035 m_webFrame->client()->suddenTerminationDisablerChanged(
1028 present, static_cast<WebFrameClient::SuddenTerminationDisablerType>( type)); 1036 present, static_cast<WebFrameClient::SuddenTerminationDisablerType>( type));
1029 } 1037 }
1030 } 1038 }
1031 1039
1032 } // namespace blink 1040 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698