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 704 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
715 return 0; | 715 return 0; |
716 return m_webFrame->client()->cookieJar(m_webFrame); | 716 return m_webFrame->client()->cookieJar(m_webFrame); |
717 } | 717 } |
718 | 718 |
719 bool FrameLoaderClientImpl::willCheckAndDispatchMessageEvent( | 719 bool FrameLoaderClientImpl::willCheckAndDispatchMessageEvent( |
720 SecurityOrigin* target, MessageEvent* event) const | 720 SecurityOrigin* target, MessageEvent* event) const |
721 { | 721 { |
722 if (!m_webFrame->client()) | 722 if (!m_webFrame->client()) |
723 return false; | 723 return false; |
724 | 724 |
725 WebFrame* source = 0; | 725 WebLocalFrame* source = 0; |
726 if (event && event->source() && event->source()->toDOMWindow() && event->sou
rce()->toDOMWindow()->document()) | 726 if (event && event->source() && event->source()->toDOMWindow() && event->sou
rce()->toDOMWindow()->document()) |
727 source = WebFrameImpl::fromFrame(event->source()->toDOMWindow()->documen
t()->frame()); | 727 source = WebFrameImpl::fromFrame(event->source()->toDOMWindow()->documen
t()->frame()); |
728 return m_webFrame->client()->willCheckAndDispatchMessageEvent( | 728 return m_webFrame->client()->willCheckAndDispatchMessageEvent( |
729 source, m_webFrame, WebSecurityOrigin(target), WebDOMMessageEvent(event)
); | 729 source, m_webFrame, WebSecurityOrigin(target), WebDOMMessageEvent(event)
); |
730 } | 730 } |
731 | 731 |
732 void FrameLoaderClientImpl::didChangeName(const String& name) | 732 void FrameLoaderClientImpl::didChangeName(const String& name) |
733 { | 733 { |
734 if (!m_webFrame->client()) | 734 if (!m_webFrame->client()) |
735 return; | 735 return; |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
794 return adoptPtr(m_webFrame->client()->createApplicationCacheHost(m_webFrame,
client)); | 794 return adoptPtr(m_webFrame->client()->createApplicationCacheHost(m_webFrame,
client)); |
795 } | 795 } |
796 | 796 |
797 void FrameLoaderClientImpl::didStopAllLoaders() | 797 void FrameLoaderClientImpl::didStopAllLoaders() |
798 { | 798 { |
799 if (m_webFrame->client()) | 799 if (m_webFrame->client()) |
800 m_webFrame->client()->didAbortLoading(m_webFrame); | 800 m_webFrame->client()->didAbortLoading(m_webFrame); |
801 } | 801 } |
802 | 802 |
803 } // namespace blink | 803 } // namespace blink |
OLD | NEW |