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

Side by Side Diff: content/browser/renderer_host/render_process_host_impl.cc

Issue 2170313002: Remove OwnedInterface (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address review comments Created 4 years, 4 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 2012 The Chromium Authors. All rights reserved. 1 // Copyright 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 // Represents the browser side of the browser <--> renderer communication 5 // Represents the browser side of the browser <--> renderer communication
6 // channel. There will be one RenderProcessHost per renderer process. 6 // channel. There will be one RenderProcessHost per renderer process.
7 7
8 #include "content/browser/renderer_host/render_process_host_impl.h" 8 #include "content/browser/renderer_host/render_process_host_impl.h"
9 9
10 #include <algorithm> 10 #include <algorithm>
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 #include "content/common/mojo/mojo_shell_connection_impl.h" 131 #include "content/common/mojo/mojo_shell_connection_impl.h"
132 #include "content/common/render_process_messages.h" 132 #include "content/common/render_process_messages.h"
133 #include "content/common/resource_messages.h" 133 #include "content/common/resource_messages.h"
134 #include "content/common/site_isolation_policy.h" 134 #include "content/common/site_isolation_policy.h"
135 #include "content/common/view_messages.h" 135 #include "content/common/view_messages.h"
136 #include "content/public/browser/browser_context.h" 136 #include "content/public/browser/browser_context.h"
137 #include "content/public/browser/browser_thread.h" 137 #include "content/public/browser/browser_thread.h"
138 #include "content/public/browser/content_browser_client.h" 138 #include "content/public/browser/content_browser_client.h"
139 #include "content/public/browser/notification_service.h" 139 #include "content/public/browser/notification_service.h"
140 #include "content/public/browser/notification_types.h" 140 #include "content/public/browser/notification_types.h"
141 #include "content/public/browser/owned_interface.h"
142 #include "content/public/browser/render_process_host_factory.h" 141 #include "content/public/browser/render_process_host_factory.h"
143 #include "content/public/browser/render_process_host_observer.h" 142 #include "content/public/browser/render_process_host_observer.h"
144 #include "content/public/browser/render_widget_host.h" 143 #include "content/public/browser/render_widget_host.h"
145 #include "content/public/browser/render_widget_host_iterator.h" 144 #include "content/public/browser/render_widget_host_iterator.h"
146 #include "content/public/browser/render_widget_host_view_frame_subscriber.h" 145 #include "content/public/browser/render_widget_host_view_frame_subscriber.h"
147 #include "content/public/browser/resource_context.h" 146 #include "content/public/browser/resource_context.h"
148 #include "content/public/browser/user_metrics.h" 147 #include "content/public/browser/user_metrics.h"
149 #include "content/public/browser/worker_service.h" 148 #include "content/public/browser/worker_service.h"
150 #include "content/public/common/child_process_host.h" 149 #include "content/public/common/child_process_host.h"
151 #include "content/public/common/content_constants.h" 150 #include "content/public/common/content_constants.h"
(...skipping 1942 matching lines...) Expand 10 before | Expand all | Expand 10 after
2094 #endif 2093 #endif
2095 2094
2096 IPC::ChannelProxy* RenderProcessHostImpl::GetChannel() { 2095 IPC::ChannelProxy* RenderProcessHostImpl::GetChannel() {
2097 return channel_.get(); 2096 return channel_.get();
2098 } 2097 }
2099 2098
2100 void RenderProcessHostImpl::AddFilter(BrowserMessageFilter* filter) { 2099 void RenderProcessHostImpl::AddFilter(BrowserMessageFilter* filter) {
2101 channel_->AddFilter(filter->GetFilter()); 2100 channel_->AddFilter(filter->GetFilter());
2102 } 2101 }
2103 2102
2104 void RenderProcessHostImpl::AddOwnedInterface(
2105 std::unique_ptr<OwnedInterface> impl) {
2106 owned_interface_impls_.push_back(std::move(impl));
2107 }
2108
2109 bool RenderProcessHostImpl::FastShutdownForPageCount(size_t count) { 2103 bool RenderProcessHostImpl::FastShutdownForPageCount(size_t count) {
2110 if (GetActiveViewCount() == count) 2104 if (GetActiveViewCount() == count)
2111 return FastShutdownIfPossible(); 2105 return FastShutdownIfPossible();
2112 return false; 2106 return false;
2113 } 2107 }
2114 2108
2115 bool RenderProcessHostImpl::FastShutdownStarted() const { 2109 bool RenderProcessHostImpl::FastShutdownStarted() const {
2116 return fast_shutdown_started_; 2110 return fast_shutdown_started_;
2117 } 2111 }
2118 2112
(...skipping 674 matching lines...) Expand 10 before | Expand all | Expand 10 after
2793 LOG(ERROR) << "Terminating render process for bad Mojo message: " << error; 2787 LOG(ERROR) << "Terminating render process for bad Mojo message: " << error;
2794 2788
2795 // The ReceivedBadMessage call below will trigger a DumpWithoutCrashing. Alias 2789 // The ReceivedBadMessage call below will trigger a DumpWithoutCrashing. Alias
2796 // enough information here so that we can determine what the bad message was. 2790 // enough information here so that we can determine what the bad message was.
2797 base::debug::Alias(&error); 2791 base::debug::Alias(&error);
2798 bad_message::ReceivedBadMessage(process.get(), 2792 bad_message::ReceivedBadMessage(process.get(),
2799 bad_message::RPH_MOJO_PROCESS_ERROR); 2793 bad_message::RPH_MOJO_PROCESS_ERROR);
2800 } 2794 }
2801 2795
2802 } // namespace content 2796 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698