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

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: nick's nits 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 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 RenderViewHostImpl(SiteInstance* instance, 118 RenderViewHostImpl(SiteInstance* instance,
119 RenderViewHostDelegate* delegate, 119 RenderViewHostDelegate* delegate,
120 RenderWidgetHostDelegate* widget_delegate, 120 RenderWidgetHostDelegate* widget_delegate,
121 int32 routing_id, 121 int32 routing_id,
122 int32 main_frame_routing_id, 122 int32 main_frame_routing_id,
123 bool swapped_out, 123 bool swapped_out,
124 bool hidden, 124 bool hidden,
125 bool has_initialized_audio_host); 125 bool has_initialized_audio_host);
126 ~RenderViewHostImpl() override; 126 ~RenderViewHostImpl() override;
127 127
128 // Shuts down this RenderViewHost and deletes it.
129 void ShutdownAndDestroy();
130
128 // RenderViewHost implementation. 131 // RenderViewHost implementation.
129 bool Send(IPC::Message* msg) override; 132 bool Send(IPC::Message* msg) override;
130 RenderWidgetHostImpl* GetWidget() const override; 133 RenderWidgetHostImpl* GetWidget() const override;
131 RenderProcessHost* GetProcess() const override; 134 RenderProcessHost* GetProcess() const override;
132 int GetRoutingID() const override; 135 int GetRoutingID() const override;
133 RenderFrameHost* GetMainFrame() override; 136 RenderFrameHost* GetMainFrame() override;
134 void AllowBindings(int binding_flags) override; 137 void AllowBindings(int binding_flags) override;
135 void ClearFocusedElement() override; 138 void ClearFocusedElement() override;
136 bool IsFocusedElementEditable() override; 139 bool IsFocusedElementEditable() override;
137 void CopyImageAt(int x, int y) override; 140 void CopyImageAt(int x, int y) override;
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
271 const net::LoadStateWithParam& load_state, 274 const net::LoadStateWithParam& load_state,
272 uint64 upload_position, 275 uint64 upload_position,
273 uint64 upload_size); 276 uint64 upload_size);
274 277
275 bool SuddenTerminationAllowed() const; 278 bool SuddenTerminationAllowed() const;
276 void set_sudden_termination_allowed(bool enabled) { 279 void set_sudden_termination_allowed(bool enabled) {
277 sudden_termination_allowed_ = enabled; 280 sudden_termination_allowed_ = enabled;
278 } 281 }
279 282
280 // RenderWidgetHost public overrides. 283 // RenderWidgetHost public overrides.
281 void Shutdown() override;
282 bool OnMessageReceived(const IPC::Message& msg) override; 284 bool OnMessageReceived(const IPC::Message& msg) override;
283 285
284 // Creates a new RenderView with the given route id. 286 // Creates a new RenderView with the given route id.
285 void CreateNewWindow(int32_t route_id, 287 void CreateNewWindow(int32_t route_id,
286 int32_t main_frame_route_id, 288 int32_t main_frame_route_id,
287 int32_t main_frame_widget_route_id, 289 int32_t main_frame_widget_route_id,
288 const ViewHostMsg_CreateWindow_Params& params, 290 const ViewHostMsg_CreateWindow_Params& params,
289 SessionStorageNamespace* session_storage_namespace); 291 SessionStorageNamespace* session_storage_namespace);
290 292
291 // Creates a new RenderWidget with the given route id. |popup_type| indicates 293 // 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); 476 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImpl);
475 }; 477 };
476 478
477 #if defined(COMPILER_MSVC) 479 #if defined(COMPILER_MSVC)
478 #pragma warning(pop) 480 #pragma warning(pop)
479 #endif 481 #endif
480 482
481 } // namespace content 483 } // namespace content
482 484
483 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ 485 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_
OLDNEW
« no previous file with comments | « content/browser/frame_host/render_frame_host_impl.cc ('k') | content/browser/renderer_host/render_view_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698