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

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

Issue 616133002: Make RenderFrame(Host) own a RenderWidget(Host). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: git cl format, changed WebWidget creation Created 6 years 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 <deque> 8 #include <deque>
9 #include <list> 9 #include <list>
10 #include <map> 10 #include <map>
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after
183 183
184 int surface_id() const { return surface_id_; } 184 int surface_id() const { return surface_id_; }
185 185
186 bool empty() const { return current_size_.IsEmpty(); } 186 bool empty() const { return current_size_.IsEmpty(); }
187 187
188 // Called when a renderer object already been created for this host, and we 188 // Called when a renderer object already been created for this host, and we
189 // just need to be attached to it. Used for window.open, <select> dropdown 189 // just need to be attached to it. Used for window.open, <select> dropdown
190 // menus, and other times when the renderer initiates creating an object. 190 // menus, and other times when the renderer initiates creating an object.
191 virtual void Init(); 191 virtual void Init();
192 192
193 // Initializes a RenderWidgetHost that is attached to a Frame.
194 virtual void InitForFrame();
nasko 2014/12/17 22:51:30 Why is this one virtual?
kenrb 2015/01/05 21:15:30 No reason. Fixed.
195
193 // Tells the renderer to die and then calls Destroy(). 196 // Tells the renderer to die and then calls Destroy().
194 virtual void Shutdown(); 197 virtual void Shutdown();
195 198
196 // IPC::Listener 199 // IPC::Listener
197 bool OnMessageReceived(const IPC::Message& msg) override; 200 bool OnMessageReceived(const IPC::Message& msg) override;
198 201
199 // Sends a message to the corresponding object in the renderer. 202 // Sends a message to the corresponding object in the renderer.
200 bool Send(IPC::Message* msg) override; 203 bool Send(IPC::Message* msg) override;
201 204
202 // Indicates if the page has finished loading. 205 // Indicates if the page has finished loading.
(...skipping 630 matching lines...) Expand 10 before | Expand all | Expand 10 after
833 PendingSnapshotMap pending_browser_snapshots_; 836 PendingSnapshotMap pending_browser_snapshots_;
834 837
835 base::WeakPtrFactory<RenderWidgetHostImpl> weak_factory_; 838 base::WeakPtrFactory<RenderWidgetHostImpl> weak_factory_;
836 839
837 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); 840 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl);
838 }; 841 };
839 842
840 } // namespace content 843 } // namespace content
841 844
842 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ 845 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698