| 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 #ifndef WebRemoteFrameClient_h | 5 #ifndef WebRemoteFrameClient_h |
| 6 #define WebRemoteFrameClient_h | 6 #define WebRemoteFrameClient_h |
| 7 | 7 |
| 8 #include "public/web/WebFrameClient.h" | 8 #include "public/web/WebDOMMessageEvent.h" |
| 9 #include "public/web/WebSecurityOrigin.h" |
| 9 | 10 |
| 10 namespace blink { | 11 namespace blink { |
| 12 class WebLocalFrame; |
| 13 class WebRemoteFrame; |
| 11 | 14 |
| 12 class WebRemoteFrameClient : public WebFrameClient { | 15 class WebRemoteFrameClient { |
| 13 public: | 16 public: |
| 14 // Notifies the embedder that a postMessage was issued to a remote frame. | 17 // Notifies the embedder that a postMessage was issued to a remote frame. |
| 15 virtual void postMessageEvent( | 18 virtual void postMessageEvent( |
| 16 WebLocalFrame* sourceFrame, | 19 WebLocalFrame* sourceFrame, |
| 17 WebRemoteFrame* targetFrame, | 20 WebRemoteFrame* targetFrame, |
| 18 WebSecurityOrigin targetOrigin, | 21 WebSecurityOrigin targetOrigin, |
| 19 WebDOMMessageEvent) = 0; | 22 WebDOMMessageEvent) = 0; |
| 20 }; | 23 }; |
| 21 | 24 |
| 22 } // namespace blink | 25 } // namespace blink |
| 23 | 26 |
| 24 #endif // WebRemoteFrameClient_h | 27 #endif // WebRemoteFrameClient_h |
| OLD | NEW |