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

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

Issue 2557063002: Upgrade Insecure Requests: bugfixes, tests, and support for OOPIF.
Patch Set: Addressed comments (@nasko #2). Created 4 years 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 837 matching lines...) Expand 10 before | Expand all | Expand 10 after
848 m_webFrame->client()->didChangeName(name, uniqueName); 848 m_webFrame->client()->didChangeName(name, uniqueName);
849 } 849 }
850 850
851 void FrameLoaderClientImpl::didEnforceInsecureRequestPolicy( 851 void FrameLoaderClientImpl::didEnforceInsecureRequestPolicy(
852 WebInsecureRequestPolicy policy) { 852 WebInsecureRequestPolicy policy) {
853 if (!m_webFrame->client()) 853 if (!m_webFrame->client())
854 return; 854 return;
855 m_webFrame->client()->didEnforceInsecureRequestPolicy(policy); 855 m_webFrame->client()->didEnforceInsecureRequestPolicy(policy);
856 } 856 }
857 857
858 void FrameLoaderClientImpl::didEnforceInsecureNavigationsSet(
859 const std::vector<unsigned>& set) {
860 if (!m_webFrame->client())
861 return;
862 m_webFrame->client()->didEnforceInsecureNavigationsSet(set);
863 }
864
858 void FrameLoaderClientImpl::didUpdateToUniqueOrigin() { 865 void FrameLoaderClientImpl::didUpdateToUniqueOrigin() {
859 if (!m_webFrame->client()) 866 if (!m_webFrame->client())
860 return; 867 return;
861 DCHECK(m_webFrame->getSecurityOrigin().isUnique()); 868 DCHECK(m_webFrame->getSecurityOrigin().isUnique());
862 m_webFrame->client()->didUpdateToUniqueOrigin( 869 m_webFrame->client()->didUpdateToUniqueOrigin(
863 m_webFrame->getSecurityOrigin().isPotentiallyTrustworthy()); 870 m_webFrame->getSecurityOrigin().isPotentiallyTrustworthy());
864 } 871 }
865 872
866 void FrameLoaderClientImpl::didChangeSandboxFlags(Frame* childFrame, 873 void FrameLoaderClientImpl::didChangeSandboxFlags(Frame* childFrame,
867 SandboxFlags flags) { 874 SandboxFlags flags) {
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
995 WebDevToolsAgentImpl* FrameLoaderClientImpl::devToolsAgent() { 1002 WebDevToolsAgentImpl* FrameLoaderClientImpl::devToolsAgent() {
996 return WebLocalFrameImpl::fromFrame(m_webFrame->frame()->localFrameRoot()) 1003 return WebLocalFrameImpl::fromFrame(m_webFrame->frame()->localFrameRoot())
997 ->devToolsAgentImpl(); 1004 ->devToolsAgentImpl();
998 } 1005 }
999 1006
1000 KURL FrameLoaderClientImpl::overrideFlashEmbedWithHTML(const KURL& url) { 1007 KURL FrameLoaderClientImpl::overrideFlashEmbedWithHTML(const KURL& url) {
1001 return m_webFrame->client()->overrideFlashEmbedWithHTML(WebURL(url)); 1008 return m_webFrame->client()->overrideFlashEmbedWithHTML(WebURL(url));
1002 } 1009 }
1003 1010
1004 } // namespace blink 1011 } // 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