| // Copyright 2014 The Chromium Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| |
| #ifndef RemoteFrame_h |
| #define RemoteFrame_h |
| |
| #include "core/frame/Frame.h" |
| |
| namespace blink { |
| |
| class RemoteFrameView; |
| |
| class RemoteFrame: public Frame { |
| public: |
| static PassRefPtr<RemoteFrame> create(FrameClient*, FrameHost*, FrameOwner*); |
| virtual bool isRemoteFrame() const OVERRIDE { return true; } |
| |
| virtual ~RemoteFrame(); |
| |
| virtual void detach() OVERRIDE; |
| |
| void setView(PassRefPtr<RemoteFrameView>); |
| void createView(); |
| |
| RemoteFrameView* view() const; |
| |
| private: |
| RemoteFrame(FrameClient*, FrameHost*, FrameOwner*); |
| |
| RefPtr<RemoteFrameView> m_view; |
| }; |
| |
| inline RemoteFrameView* RemoteFrame::view() const |
| { |
| return m_view.get(); |
| } |
| |
| DEFINE_TYPE_CASTS(RemoteFrame, Frame, remoteFrame, remoteFrame->isRemoteFrame(), remoteFrame.isRemoteFrame()); |
| |
| } // namespace blink |
| |
| #endif // RemoteFrame_h |