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

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

Issue 573353002: Plumbing toward transitioning remote frame back to a local frame. (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/exported/WrappedResourceRequest.h"
8 #include "platform/weborigin/SecurityOrigin.h" 9 #include "platform/weborigin/SecurityOrigin.h"
10 #include "platform/weborigin/SecurityPolicy.h"
9 #include "web/WebLocalFrameImpl.h" 11 #include "web/WebLocalFrameImpl.h"
10 #include "web/WebRemoteFrameImpl.h" 12 #include "web/WebRemoteFrameImpl.h"
11 13
12 namespace blink { 14 namespace blink {
13 15
14 RemoteFrameClient::RemoteFrameClient(WebRemoteFrameImpl* webFrame) 16 RemoteFrameClient::RemoteFrameClient(WebRemoteFrameImpl* webFrame)
15 : m_webFrame(webFrame) 17 : m_webFrame(webFrame)
16 { 18 {
17 } 19 }
18 20
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 } 59 }
58 60
59 bool RemoteFrameClient::willCheckAndDispatchMessageEvent( 61 bool RemoteFrameClient::willCheckAndDispatchMessageEvent(
60 SecurityOrigin* target, MessageEvent* event, LocalFrame* sourceFrame) const 62 SecurityOrigin* target, MessageEvent* event, LocalFrame* sourceFrame) const
61 { 63 {
62 if (m_webFrame->client()) 64 if (m_webFrame->client())
63 m_webFrame->client()->postMessageEvent(WebLocalFrameImpl::fromFrame(sour ceFrame), m_webFrame, WebSecurityOrigin(target), WebDOMMessageEvent(event)); 65 m_webFrame->client()->postMessageEvent(WebLocalFrameImpl::fromFrame(sour ceFrame), m_webFrame, WebSecurityOrigin(target), WebDOMMessageEvent(event));
64 return true; 66 return true;
65 } 67 }
66 68
69 void RemoteFrameClient::navigate(const ResourceRequest& request, bool shouldRepl aceCurrentEntry)
70 {
71 if (m_webFrame->client())
72 m_webFrame->client()->navigate(m_webFrame, WrappedResourceRequest(reques t), shouldReplaceCurrentEntry);
73 }
74
67 } // namespace blink 75 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698