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

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

Issue 1973133002: ✀ Remove postMessage plumbing for swappedout:// ✀ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase to use std::move instead of release(). Created 4 years, 7 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 874 matching lines...) Expand 10 before | Expand all | Expand 10 after
885 return ObjectContentNone; 885 return ObjectContentNone;
886 } 886 }
887 887
888 WebCookieJar* FrameLoaderClientImpl::cookieJar() const 888 WebCookieJar* FrameLoaderClientImpl::cookieJar() const
889 { 889 {
890 if (!m_webFrame->client()) 890 if (!m_webFrame->client())
891 return 0; 891 return 0;
892 return m_webFrame->client()->cookieJar(); 892 return m_webFrame->client()->cookieJar();
893 } 893 }
894 894
895 bool FrameLoaderClientImpl::willCheckAndDispatchMessageEvent(
896 SecurityOrigin* target, MessageEvent* event, LocalFrame* sourceFrame) const
897 {
898 if (!m_webFrame->client())
899 return false;
900 return m_webFrame->client()->willCheckAndDispatchMessageEvent(
901 WebLocalFrameImpl::fromFrame(sourceFrame), m_webFrame, WebSecurityOrigin (target), WebDOMMessageEvent(event));
902 }
903
904 void FrameLoaderClientImpl::frameFocused() const 895 void FrameLoaderClientImpl::frameFocused() const
905 { 896 {
906 if (m_webFrame->client()) 897 if (m_webFrame->client())
907 m_webFrame->client()->frameFocused(); 898 m_webFrame->client()->frameFocused();
908 } 899 }
909 900
910 void FrameLoaderClientImpl::didChangeName(const String& name, const String& uniq ueName) 901 void FrameLoaderClientImpl::didChangeName(const String& name, const String& uniq ueName)
911 { 902 {
912 if (!m_webFrame->client()) 903 if (!m_webFrame->client())
913 return; 904 return;
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
1034 } 1025 }
1035 1026
1036 WebEffectiveConnectionType FrameLoaderClientImpl::getEffectiveConnectionType() 1027 WebEffectiveConnectionType FrameLoaderClientImpl::getEffectiveConnectionType()
1037 { 1028 {
1038 if (m_webFrame->client()) 1029 if (m_webFrame->client())
1039 return m_webFrame->client()->getEffectiveConnectionType(); 1030 return m_webFrame->client()->getEffectiveConnectionType();
1040 return WebEffectiveConnectionType::TypeUnknown; 1031 return WebEffectiveConnectionType::TypeUnknown;
1041 } 1032 }
1042 1033
1043 } // namespace blink 1034 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/FrameLoaderClientImpl.h ('k') | third_party/WebKit/Source/web/RemoteFrameClientImpl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698