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

Side by Side Diff: content/browser/renderer_host/render_widget_host_impl.h

Issue 1303773002: Give the main frame a RenderWidget. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix merge conflicts Created 5 years, 1 month 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_
7 7
8 #include <list> 8 #include <list>
9 #include <map> 9 #include <map>
10 #include <string> 10 #include <string>
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 virtual void Init(); 180 virtual void Init();
181 181
182 // Initializes a RenderWidgetHost that is attached to a RenderFrameHost. 182 // Initializes a RenderWidgetHost that is attached to a RenderFrameHost.
183 void InitForFrame(); 183 void InitForFrame();
184 184
185 // Signal whether this RenderWidgetHost is owned by a RenderFrameHost, in 185 // Signal whether this RenderWidgetHost is owned by a RenderFrameHost, in
186 // which case it does not do self-deletion. 186 // which case it does not do self-deletion.
187 void set_owned_by_render_frame_host(bool owned_by_rfh) { 187 void set_owned_by_render_frame_host(bool owned_by_rfh) {
188 owned_by_render_frame_host_ = owned_by_rfh; 188 owned_by_render_frame_host_ = owned_by_rfh;
189 } 189 }
190 bool owned_by_render_frame_host() const {
191 return owned_by_render_frame_host_;
192 }
190 193
191 // Tells the renderer to die and then calls Destroy(). 194 // Tells the renderer to die and then calls Destroy().
192 virtual void Shutdown(); 195 virtual void Shutdown();
193 196
194 // IPC::Listener 197 // IPC::Listener
195 bool OnMessageReceived(const IPC::Message& msg) override; 198 bool OnMessageReceived(const IPC::Message& msg) override;
196 199
197 // Sends a message to the corresponding object in the renderer. 200 // Sends a message to the corresponding object in the renderer.
198 bool Send(IPC::Message* msg) override; 201 bool Send(IPC::Message* msg) override;
199 202
(...skipping 644 matching lines...) Expand 10 before | Expand all | Expand 10 after
844 base::TimeDelta new_content_rendering_delay_; 847 base::TimeDelta new_content_rendering_delay_;
845 848
846 base::WeakPtrFactory<RenderWidgetHostImpl> weak_factory_; 849 base::WeakPtrFactory<RenderWidgetHostImpl> weak_factory_;
847 850
848 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); 851 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl);
849 }; 852 };
850 853
851 } // namespace content 854 } // namespace content
852 855
853 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ 856 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698