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/WebDOMMessageEvent.h" | 8 #include "public/web/WebDOMMessageEvent.h" |
9 #include "public/web/WebSecurityOrigin.h" | 9 #include "public/web/WebSecurityOrigin.h" |
10 | 10 |
11 namespace blink { | 11 namespace blink { |
12 class WebLocalFrame; | 12 class WebLocalFrame; |
13 class WebRemoteFrame; | 13 class WebRemoteFrame; |
14 | 14 |
15 class WebRemoteFrameClient { | 15 class WebRemoteFrameClient { |
16 public: | 16 public: |
| 17 // Notify the embedder that it should remove this frame from the frame tree |
| 18 // and release any resources associated with it. |
| 19 virtual void frameDetached() { } |
| 20 |
17 // Notifies the embedder that a postMessage was issued to a remote frame. | 21 // Notifies the embedder that a postMessage was issued to a remote frame. |
18 virtual void postMessageEvent( | 22 virtual void postMessageEvent( |
19 WebLocalFrame* sourceFrame, | 23 WebLocalFrame* sourceFrame, |
20 WebRemoteFrame* targetFrame, | 24 WebRemoteFrame* targetFrame, |
21 WebSecurityOrigin targetOrigin, | 25 WebSecurityOrigin targetOrigin, |
22 WebDOMMessageEvent) = 0; | 26 WebDOMMessageEvent) = 0; |
23 }; | 27 }; |
24 | 28 |
25 } // namespace blink | 29 } // namespace blink |
26 | 30 |
27 #endif // WebRemoteFrameClient_h | 31 #endif // WebRemoteFrameClient_h |
OLD | NEW |