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

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

Issue 551973005: Streamline frame detach (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 3 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "config.h" 5 #include "config.h"
6 #include "web/RemoteFrameClient.h" 6 #include "web/RemoteFrameClient.h"
7 7
8 #include "platform/weborigin/SecurityOrigin.h" 8 #include "platform/weborigin/SecurityOrigin.h"
9 #include "web/WebLocalFrameImpl.h" 9 #include "web/WebLocalFrameImpl.h"
10 #include "web/WebRemoteFrameImpl.h" 10 #include "web/WebRemoteFrameImpl.h"
11 11
12 namespace blink { 12 namespace blink {
13 13
14 RemoteFrameClient::RemoteFrameClient(WebRemoteFrameImpl* webFrame) 14 RemoteFrameClient::RemoteFrameClient(WebRemoteFrameImpl* webFrame)
15 : m_webFrame(webFrame) 15 : m_webFrame(webFrame)
16 { 16 {
17 } 17 }
18 18
19 void RemoteFrameClient::detached()
20 {
21 // FIXME: Implement.
dcheng 2014/09/25 23:35:44 What do you have in mind here? Or is this just so
Nate Chapin 2014/09/25 23:57:51 Mostly so we can pull the detached() call up into
22 }
23
19 Frame* RemoteFrameClient::opener() const 24 Frame* RemoteFrameClient::opener() const
20 { 25 {
21 return toCoreFrame(m_webFrame->opener()); 26 return toCoreFrame(m_webFrame->opener());
22 } 27 }
23 28
24 void RemoteFrameClient::setOpener(Frame*) 29 void RemoteFrameClient::setOpener(Frame*)
25 { 30 {
26 // FIXME: Implement. 31 // FIXME: Implement.
27 } 32 }
28 33
(...skipping 29 matching lines...) Expand all
58 63
59 bool RemoteFrameClient::willCheckAndDispatchMessageEvent( 64 bool RemoteFrameClient::willCheckAndDispatchMessageEvent(
60 SecurityOrigin* target, MessageEvent* event, LocalFrame* sourceFrame) const 65 SecurityOrigin* target, MessageEvent* event, LocalFrame* sourceFrame) const
61 { 66 {
62 if (m_webFrame->client()) 67 if (m_webFrame->client())
63 m_webFrame->client()->postMessageEvent(WebLocalFrameImpl::fromFrame(sour ceFrame), m_webFrame, WebSecurityOrigin(target), WebDOMMessageEvent(event)); 68 m_webFrame->client()->postMessageEvent(WebLocalFrameImpl::fromFrame(sour ceFrame), m_webFrame, WebSecurityOrigin(target), WebDOMMessageEvent(event));
64 return true; 69 return true;
65 } 70 }
66 71
67 } // namespace blink 72 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698