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 RemoteFrameClientImpl_h | 5 #ifndef RemoteFrameClientImpl_h |
6 #define RemoteFrameClientImpl_h | 6 #define RemoteFrameClientImpl_h |
7 | 7 |
8 #include "core/frame/RemoteFrameClient.h" | 8 #include "core/frame/RemoteFrameClient.h" |
9 | 9 |
10 namespace blink { | 10 namespace blink { |
11 class WebRemoteFrameImpl; | 11 class WebRemoteFrameImpl; |
12 | 12 |
13 class RemoteFrameClientImpl : public RemoteFrameClient { | 13 class RemoteFrameClientImpl : public RemoteFrameClient { |
14 public: | 14 public: |
15 explicit RemoteFrameClientImpl(WebRemoteFrameImpl*); | 15 explicit RemoteFrameClientImpl(WebRemoteFrameImpl*); |
16 | 16 |
17 // FrameClient overrides: | 17 // FrameClient overrides: |
| 18 virtual void detached() OVERRIDE; |
| 19 |
18 virtual Frame* opener() const OVERRIDE; | 20 virtual Frame* opener() const OVERRIDE; |
19 virtual void setOpener(Frame*) OVERRIDE; | 21 virtual void setOpener(Frame*) OVERRIDE; |
20 | 22 |
21 virtual Frame* parent() const OVERRIDE; | 23 virtual Frame* parent() const OVERRIDE; |
22 virtual Frame* top() const OVERRIDE; | 24 virtual Frame* top() const OVERRIDE; |
23 virtual Frame* previousSibling() const OVERRIDE; | 25 virtual Frame* previousSibling() const OVERRIDE; |
24 virtual Frame* nextSibling() const OVERRIDE; | 26 virtual Frame* nextSibling() const OVERRIDE; |
25 virtual Frame* firstChild() const OVERRIDE; | 27 virtual Frame* firstChild() const OVERRIDE; |
26 virtual Frame* lastChild() const OVERRIDE; | 28 virtual Frame* lastChild() const OVERRIDE; |
27 | 29 |
28 virtual bool willCheckAndDispatchMessageEvent(SecurityOrigin*, MessageEvent*
, LocalFrame*) const OVERRIDE; | 30 virtual bool willCheckAndDispatchMessageEvent(SecurityOrigin*, MessageEvent*
, LocalFrame*) const OVERRIDE; |
29 | 31 |
30 // RemoteFrameClient overrides: | 32 // RemoteFrameClient overrides: |
31 virtual void navigate(const ResourceRequest&, bool shouldReplaceCurrentEntry
) OVERRIDE; | 33 virtual void navigate(const ResourceRequest&, bool shouldReplaceCurrentEntry
) OVERRIDE; |
32 | 34 |
33 WebRemoteFrameImpl* webFrame() const { return m_webFrame; } | 35 WebRemoteFrameImpl* webFrame() const { return m_webFrame; } |
34 | 36 |
35 private: | 37 private: |
36 WebRemoteFrameImpl* m_webFrame; | 38 WebRemoteFrameImpl* m_webFrame; |
37 }; | 39 }; |
38 | 40 |
39 } // namespace blink | 41 } // namespace blink |
40 | 42 |
41 #endif // RemoteFrameClientImpl_h | 43 #endif // RemoteFrameClientImpl_h |
OLD | NEW |