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

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

Issue 222203007: Conversion of more places in Blink to use WebLocalFrame (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 8 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | Source/web/WebDOMFileSystem.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 704 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« no previous file with comments | « no previous file | Source/web/WebDOMFileSystem.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698