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

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

Issue 2046733003: Replicate WebInsecureRequestPolicy instead of a bool for strict mixed content checks. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@securitycontext
Patch Set: alexmos@ Created 4 years, 6 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 878 matching lines...) Expand 10 before | Expand all | Expand 10 after
889 m_webFrame->client()->frameFocused(); 889 m_webFrame->client()->frameFocused();
890 } 890 }
891 891
892 void FrameLoaderClientImpl::didChangeName(const String& name, const String& uniq ueName) 892 void FrameLoaderClientImpl::didChangeName(const String& name, const String& uniq ueName)
893 { 893 {
894 if (!m_webFrame->client()) 894 if (!m_webFrame->client())
895 return; 895 return;
896 m_webFrame->client()->didChangeName(name, uniqueName); 896 m_webFrame->client()->didChangeName(name, uniqueName);
897 } 897 }
898 898
899 void FrameLoaderClientImpl::didEnforceStrictMixedContentChecking() 899 void FrameLoaderClientImpl::didEnforceInsecureRequestPolicy(WebInsecureRequestPo licy policy)
900 { 900 {
901 if (!m_webFrame->client()) 901 if (!m_webFrame->client())
902 return; 902 return;
903 m_webFrame->client()->didEnforceStrictMixedContentChecking(); 903 m_webFrame->client()->didEnforceInsecureRequestPolicy(policy);
904 } 904 }
905 905
906 void FrameLoaderClientImpl::didUpdateToUniqueOrigin() 906 void FrameLoaderClientImpl::didUpdateToUniqueOrigin()
907 { 907 {
908 if (!m_webFrame->client()) 908 if (!m_webFrame->client())
909 return; 909 return;
910 DCHECK(m_webFrame->getSecurityOrigin().isUnique()); 910 DCHECK(m_webFrame->getSecurityOrigin().isUnique());
911 m_webFrame->client()->didUpdateToUniqueOrigin(m_webFrame->getSecurityOrigin( ).isPotentiallyTrustworthy()); 911 m_webFrame->client()->didUpdateToUniqueOrigin(m_webFrame->getSecurityOrigin( ).isPotentiallyTrustworthy());
912 } 912 }
913 913
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
1029 } 1029 }
1030 1030
1031 WebEffectiveConnectionType FrameLoaderClientImpl::getEffectiveConnectionType() 1031 WebEffectiveConnectionType FrameLoaderClientImpl::getEffectiveConnectionType()
1032 { 1032 {
1033 if (m_webFrame->client()) 1033 if (m_webFrame->client())
1034 return m_webFrame->client()->getEffectiveConnectionType(); 1034 return m_webFrame->client()->getEffectiveConnectionType();
1035 return WebEffectiveConnectionType::TypeUnknown; 1035 return WebEffectiveConnectionType::TypeUnknown;
1036 } 1036 }
1037 1037
1038 } // namespace blink 1038 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/FrameLoaderClientImpl.h ('k') | third_party/WebKit/Source/web/WebFrame.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698