Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(15)

Side by Side Diff: Source/core/frame/RemoteFrame.h

Issue 419863004: Refactor frame detach to work for both local and remote frames. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix comment typo Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/core/frame/LocalFrame.cpp ('k') | Source/core/frame/RemoteFrame.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 RemoteFrame_h 5 #ifndef RemoteFrame_h
6 #define RemoteFrame_h 6 #define RemoteFrame_h
7 7
8 #include "core/frame/Frame.h" 8 #include "core/frame/Frame.h"
9 9
10 namespace blink { 10 namespace blink {
11 11
12 class RemoteFrameView; 12 class RemoteFrameView;
13 13
14 class RemoteFrame: public Frame { 14 class RemoteFrame: public Frame {
15 public: 15 public:
16 static PassRefPtr<RemoteFrame> create(FrameClient*, FrameHost*, FrameOwner*) ; 16 static PassRefPtr<RemoteFrame> create(FrameClient*, FrameHost*, FrameOwner*) ;
17 virtual bool isRemoteFrame() const OVERRIDE { return true; } 17 virtual bool isRemoteFrame() const OVERRIDE { return true; }
18 18
19 virtual ~RemoteFrame(); 19 virtual ~RemoteFrame();
20 20
21 virtual void detach() OVERRIDE;
22
21 void setView(PassRefPtr<RemoteFrameView>); 23 void setView(PassRefPtr<RemoteFrameView>);
22 void createView(); 24 void createView();
23 25
24 RemoteFrameView* view() const; 26 RemoteFrameView* view() const;
25 27
26 private: 28 private:
27 RemoteFrame(FrameClient*, FrameHost*, FrameOwner*); 29 RemoteFrame(FrameClient*, FrameHost*, FrameOwner*);
28 30
29 RefPtr<RemoteFrameView> m_view; 31 RefPtr<RemoteFrameView> m_view;
30 }; 32 };
31 33
32 inline RemoteFrameView* RemoteFrame::view() const 34 inline RemoteFrameView* RemoteFrame::view() const
33 { 35 {
34 return m_view.get(); 36 return m_view.get();
35 } 37 }
36 38
37 DEFINE_TYPE_CASTS(RemoteFrame, Frame, remoteFrame, remoteFrame->isRemoteFrame(), remoteFrame.isRemoteFrame()); 39 DEFINE_TYPE_CASTS(RemoteFrame, Frame, remoteFrame, remoteFrame->isRemoteFrame(), remoteFrame.isRemoteFrame());
38 40
39 } // namespace blink 41 } // namespace blink
40 42
41 #endif // RemoteFrame_h 43 #endif // RemoteFrame_h
OLDNEW
« no previous file with comments | « Source/core/frame/LocalFrame.cpp ('k') | Source/core/frame/RemoteFrame.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698