| 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 |