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