| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |