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

Side by Side Diff: content/browser/frame_host/render_frame_proxy_host.h

Issue 1981413002: Remove Is{RVH}OnSwappedOutList, now that swappedout:// is gone. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update comments Created 4 years, 7 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 CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_PROXY_HOST_H_ 5 #ifndef CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_PROXY_HOST_H_
6 #define CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_PROXY_HOST_H_ 6 #define CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_PROXY_HOST_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
11 11
12 #include "base/macros.h" 12 #include "base/macros.h"
13 #include "content/browser/frame_host/render_frame_host_impl.h"
14 #include "content/browser/site_instance_impl.h" 13 #include "content/browser/site_instance_impl.h"
15 #include "ipc/ipc_listener.h" 14 #include "ipc/ipc_listener.h"
16 #include "ipc/ipc_sender.h" 15 #include "ipc/ipc_sender.h"
17 #include "third_party/WebKit/public/platform/WebFocusType.h" 16 #include "third_party/WebKit/public/platform/WebFocusType.h"
18 17
18 struct FrameHostMsg_OpenURL_Params;
19 struct FrameMsg_PostMessage_Params; 19 struct FrameMsg_PostMessage_Params;
20 20
21 namespace content { 21 namespace content {
22 22
23 class CrossProcessFrameConnector; 23 class CrossProcessFrameConnector;
24 class FrameTreeNode; 24 class FrameTreeNode;
25 class RenderProcessHost; 25 class RenderProcessHost;
26 class RenderFrameHostImpl; 26 class RenderFrameHostImpl;
27 class RenderViewHostImpl; 27 class RenderViewHostImpl;
28 class RenderWidgetHostView; 28 class RenderWidgetHostView;
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 } 78 }
79 79
80 SiteInstance* GetSiteInstance() { 80 SiteInstance* GetSiteInstance() {
81 return site_instance_.get(); 81 return site_instance_.get();
82 } 82 }
83 83
84 FrameTreeNode* frame_tree_node() const { return frame_tree_node_; }; 84 FrameTreeNode* frame_tree_node() const { return frame_tree_node_; };
85 85
86 void SetChildRWHView(RenderWidgetHostView* view); 86 void SetChildRWHView(RenderWidgetHostView* view);
87 87
88 // TODO(nasko): The following methods should be removed once we don't have a
89 // swapped out state on RenderFrameHosts. See https://crbug.com/357747.
90 RenderFrameHostImpl* render_frame_host() {
91 return render_frame_host_.get();
92 }
93 RenderViewHostImpl* GetRenderViewHost(); 88 RenderViewHostImpl* GetRenderViewHost();
94 RenderWidgetHostView* GetRenderWidgetHostView(); 89 RenderWidgetHostView* GetRenderWidgetHostView();
95 90
96 // IPC::Sender 91 // IPC::Sender
97 bool Send(IPC::Message* msg) override; 92 bool Send(IPC::Message* msg) override;
98 93
99 // IPC::Listener 94 // IPC::Listener
100 bool OnMessageReceived(const IPC::Message& msg) override; 95 bool OnMessageReceived(const IPC::Message& msg) override;
101 96
102 CrossProcessFrameConnector* cross_process_frame_connector() { 97 CrossProcessFrameConnector* cross_process_frame_connector() {
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 141
147 // True if we have a live RenderFrameProxy for this host. 142 // True if we have a live RenderFrameProxy for this host.
148 bool render_frame_proxy_created_; 143 bool render_frame_proxy_created_;
149 144
150 // When a RenderFrameHost is in a different process from its parent in the 145 // When a RenderFrameHost is in a different process from its parent in the
151 // frame tree, this class connects its associated RenderWidgetHostView 146 // frame tree, this class connects its associated RenderWidgetHostView
152 // to this RenderFrameProxyHost, which corresponds to the same frame in the 147 // to this RenderFrameProxyHost, which corresponds to the same frame in the
153 // parent's renderer process. 148 // parent's renderer process.
154 std::unique_ptr<CrossProcessFrameConnector> cross_process_frame_connector_; 149 std::unique_ptr<CrossProcessFrameConnector> cross_process_frame_connector_;
155 150
156 // TODO(nasko): This can be removed once we don't have a swapped out state on
157 // RenderFrameHosts. See https://crbug.com/357747.
158 std::unique_ptr<RenderFrameHostImpl> render_frame_host_;
159
160 // The RenderViewHost that this RenderFrameProxyHost is associated with. It is 151 // The RenderViewHost that this RenderFrameProxyHost is associated with. It is
161 // kept alive as long as any RenderFrameHosts or RenderFrameProxyHosts 152 // kept alive as long as any RenderFrameHosts or RenderFrameProxyHosts
162 // are associated with it. 153 // are associated with it.
163 RenderViewHostImpl* render_view_host_; 154 RenderViewHostImpl* render_view_host_;
164 155
165 DISALLOW_COPY_AND_ASSIGN(RenderFrameProxyHost); 156 DISALLOW_COPY_AND_ASSIGN(RenderFrameProxyHost);
166 }; 157 };
167 158
168 } // namespace 159 } // namespace
169 160
170 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_PROXY_HOST_H_ 161 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_PROXY_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698