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

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

Issue 2714943004: Move unique name generation and tracking into //content. (Closed)
Patch Set: . Created 3 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 840 matching lines...) Expand 10 before | Expand all | Expand 10 after
851 if (!m_webFrame->client()) 851 if (!m_webFrame->client())
852 return 0; 852 return 0;
853 return m_webFrame->client()->cookieJar(); 853 return m_webFrame->client()->cookieJar();
854 } 854 }
855 855
856 void LocalFrameClientImpl::frameFocused() const { 856 void LocalFrameClientImpl::frameFocused() const {
857 if (m_webFrame->client()) 857 if (m_webFrame->client())
858 m_webFrame->client()->frameFocused(); 858 m_webFrame->client()->frameFocused();
859 } 859 }
860 860
861 void LocalFrameClientImpl::didChangeName(const String& name, 861 void LocalFrameClientImpl::didChangeName(const String& name) {
862 const String& uniqueName) {
863 if (!m_webFrame->client()) 862 if (!m_webFrame->client())
864 return; 863 return;
865 m_webFrame->client()->didChangeName(name, uniqueName); 864 m_webFrame->client()->didChangeName(name);
866 } 865 }
867 866
868 void LocalFrameClientImpl::didEnforceInsecureRequestPolicy( 867 void LocalFrameClientImpl::didEnforceInsecureRequestPolicy(
869 WebInsecureRequestPolicy policy) { 868 WebInsecureRequestPolicy policy) {
870 if (!m_webFrame->client()) 869 if (!m_webFrame->client())
871 return; 870 return;
872 m_webFrame->client()->didEnforceInsecureRequestPolicy(policy); 871 m_webFrame->client()->didEnforceInsecureRequestPolicy(policy);
873 } 872 }
874 873
875 void LocalFrameClientImpl::didUpdateToUniqueOrigin() { 874 void LocalFrameClientImpl::didUpdateToUniqueOrigin() {
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
1021 KURL LocalFrameClientImpl::overrideFlashEmbedWithHTML(const KURL& url) { 1020 KURL LocalFrameClientImpl::overrideFlashEmbedWithHTML(const KURL& url) {
1022 return m_webFrame->client()->overrideFlashEmbedWithHTML(WebURL(url)); 1021 return m_webFrame->client()->overrideFlashEmbedWithHTML(WebURL(url));
1023 } 1022 }
1024 1023
1025 void LocalFrameClientImpl::setHasReceivedUserGesture() { 1024 void LocalFrameClientImpl::setHasReceivedUserGesture() {
1026 if (m_webFrame->client()) 1025 if (m_webFrame->client())
1027 m_webFrame->client()->setHasReceivedUserGesture(); 1026 m_webFrame->client()->setHasReceivedUserGesture();
1028 } 1027 }
1029 1028
1030 } // namespace blink 1029 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698