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

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

Issue 1453803002: Separate RenderViewHost from RenderWidgetHost, part 10: shutdown. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: no dcheck for now Created 5 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_VIEW_HOST_IMPL_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 RenderWidgetHostImpl, 98 RenderWidgetHostImpl,
99 public RenderWidgetHostOwnerDelegate, 99 public RenderWidgetHostOwnerDelegate,
100 public RenderProcessHostObserver { 100 public RenderProcessHostObserver {
101 public: 101 public:
102 // Convenience function, just like RenderViewHost::FromID. 102 // Convenience function, just like RenderViewHost::FromID.
103 static RenderViewHostImpl* FromID(int render_process_id, int render_view_id); 103 static RenderViewHostImpl* FromID(int render_process_id, int render_view_id);
104 104
105 // Convenience function, just like RenderViewHost::From. 105 // Convenience function, just like RenderViewHost::From.
106 static RenderViewHostImpl* From(RenderWidgetHost* rwh); 106 static RenderViewHostImpl* From(RenderWidgetHost* rwh);
107 107
108 void ShutdownAndDestroy();
ncarter (slow) 2015/12/11 22:13:29 This belongs after the ctor/dtor.
Avi (use Gerrit) 2015/12/14 02:03:49 Done.
109
108 // |routing_id| must be a valid route id. |swapped_out| indicates 110 // |routing_id| must be a valid route id. |swapped_out| indicates
109 // whether the view should initially be swapped out (e.g., for an opener 111 // whether the view should initially be swapped out (e.g., for an opener
110 // frame being rendered by another process). |hidden| indicates whether the 112 // frame being rendered by another process). |hidden| indicates whether the
111 // view is initially hidden or visible. 113 // view is initially hidden or visible.
112 // 114 //
113 // The |session_storage_namespace| parameter allows multiple render views and 115 // The |session_storage_namespace| parameter allows multiple render views and
114 // WebContentses to share the same session storage (part of the WebStorage 116 // WebContentses to share the same session storage (part of the WebStorage
115 // spec) space. This is useful when restoring contentses, but most callers 117 // spec) space. This is useful when restoring contentses, but most callers
116 // should pass in NULL which will cause a new SessionStorageNamespace to be 118 // should pass in NULL which will cause a new SessionStorageNamespace to be
117 // created. 119 // created.
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
271 const net::LoadStateWithParam& load_state, 273 const net::LoadStateWithParam& load_state,
272 uint64 upload_position, 274 uint64 upload_position,
273 uint64 upload_size); 275 uint64 upload_size);
274 276
275 bool SuddenTerminationAllowed() const; 277 bool SuddenTerminationAllowed() const;
276 void set_sudden_termination_allowed(bool enabled) { 278 void set_sudden_termination_allowed(bool enabled) {
277 sudden_termination_allowed_ = enabled; 279 sudden_termination_allowed_ = enabled;
278 } 280 }
279 281
280 // RenderWidgetHost public overrides. 282 // RenderWidgetHost public overrides.
281 void Shutdown() override;
282 bool OnMessageReceived(const IPC::Message& msg) override; 283 bool OnMessageReceived(const IPC::Message& msg) override;
283 284
284 // Creates a new RenderView with the given route id. 285 // Creates a new RenderView with the given route id.
285 void CreateNewWindow(int32_t route_id, 286 void CreateNewWindow(int32_t route_id,
286 int32_t main_frame_route_id, 287 int32_t main_frame_route_id,
287 int32_t main_frame_widget_route_id, 288 int32_t main_frame_widget_route_id,
288 const ViewHostMsg_CreateWindow_Params& params, 289 const ViewHostMsg_CreateWindow_Params& params,
289 SessionStorageNamespace* session_storage_namespace); 290 SessionStorageNamespace* session_storage_namespace);
290 291
291 // Creates a new RenderWidget with the given route id. |popup_type| indicates 292 // Creates a new RenderWidget with the given route id. |popup_type| indicates
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
474 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImpl); 475 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImpl);
475 }; 476 };
476 477
477 #if defined(COMPILER_MSVC) 478 #if defined(COMPILER_MSVC)
478 #pragma warning(pop) 479 #pragma warning(pop)
479 #endif 480 #endif
480 481
481 } // namespace content 482 } // namespace content
482 483
483 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ 484 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698