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

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

Issue 603193005: Move the Widget hierarchy to the Oilpan heap. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Switch LocalFrame::m_pluginElements rep to HashSet<HTMLPlugInElement*> Created 6 years, 2 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
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 RemoteFrameClient; 12 class RemoteFrameClient;
13 class RemoteFrameView; 13 class RemoteFrameView;
14 14
15 class RemoteFrame: public Frame { 15 class RemoteFrame: public Frame {
16 public: 16 public:
17 static PassRefPtrWillBeRawPtr<RemoteFrame> create(RemoteFrameClient*, FrameH ost*, FrameOwner*); 17 static PassRefPtrWillBeRawPtr<RemoteFrame> create(RemoteFrameClient*, FrameH ost*, FrameOwner*);
18 virtual bool isRemoteFrame() const override { return true; } 18 virtual bool isRemoteFrame() const override { return true; }
19 19
20 virtual ~RemoteFrame(); 20 virtual ~RemoteFrame();
21 21
22 virtual void navigate(Document& originDocument, const KURL&, bool lockBackFo rwardList) override; 22 virtual void navigate(Document& originDocument, const KURL&, bool lockBackFo rwardList) override;
23 virtual void detach() override; 23 virtual void detach() override;
24 24
25 void setView(PassRefPtr<RemoteFrameView>); 25 void setView(PassRefPtrWillBeRawPtr<RemoteFrameView>);
26 void createView(); 26 void createView();
27 27
28 RemoteFrameView* view() const; 28 RemoteFrameView* view() const;
29 29
30 void trace(Visitor*) OVERRIDE;
31
30 private: 32 private:
31 RemoteFrame(RemoteFrameClient*, FrameHost*, FrameOwner*); 33 RemoteFrame(RemoteFrameClient*, FrameHost*, FrameOwner*);
32 34
33 RemoteFrameClient* remoteFrameClient() const; 35 RemoteFrameClient* remoteFrameClient() const;
34 36
35 RefPtr<RemoteFrameView> m_view; 37 RefPtrWillBeMember<RemoteFrameView> m_view;
36 }; 38 };
37 39
38 inline RemoteFrameView* RemoteFrame::view() const 40 inline RemoteFrameView* RemoteFrame::view() const
39 { 41 {
40 return m_view.get(); 42 return m_view.get();
41 } 43 }
42 44
43 DEFINE_TYPE_CASTS(RemoteFrame, Frame, remoteFrame, remoteFrame->isRemoteFrame(), remoteFrame.isRemoteFrame()); 45 DEFINE_TYPE_CASTS(RemoteFrame, Frame, remoteFrame, remoteFrame->isRemoteFrame(), remoteFrame.isRemoteFrame());
44 46
45 } // namespace blink 47 } // namespace blink
46 48
47 #endif // RemoteFrame_h 49 #endif // RemoteFrame_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698