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

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

Issue 2072613003: Convert GetSearchProviderInstallState to Mojo (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Merge Created 4 years, 5 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"
141 #include "content/public/browser/render_process_host_factory.h" 142 #include "content/public/browser/render_process_host_factory.h"
142 #include "content/public/browser/render_process_host_observer.h" 143 #include "content/public/browser/render_process_host_observer.h"
143 #include "content/public/browser/render_widget_host.h" 144 #include "content/public/browser/render_widget_host.h"
144 #include "content/public/browser/render_widget_host_iterator.h" 145 #include "content/public/browser/render_widget_host_iterator.h"
145 #include "content/public/browser/render_widget_host_view_frame_subscriber.h" 146 #include "content/public/browser/render_widget_host_view_frame_subscriber.h"
146 #include "content/public/browser/resource_context.h" 147 #include "content/public/browser/resource_context.h"
147 #include "content/public/browser/user_metrics.h" 148 #include "content/public/browser/user_metrics.h"
148 #include "content/public/browser/worker_service.h" 149 #include "content/public/browser/worker_service.h"
149 #include "content/public/common/child_process_host.h" 150 #include "content/public/common/child_process_host.h"
150 #include "content/public/common/content_constants.h" 151 #include "content/public/common/content_constants.h"
(...skipping 1942 matching lines...) Expand 10 before | Expand all | Expand 10 after
2093 #endif 2094 #endif
2094 2095
2095 IPC::ChannelProxy* RenderProcessHostImpl::GetChannel() { 2096 IPC::ChannelProxy* RenderProcessHostImpl::GetChannel() {
2096 return channel_.get(); 2097 return channel_.get();
2097 } 2098 }
2098 2099
2099 void RenderProcessHostImpl::AddFilter(BrowserMessageFilter* filter) { 2100 void RenderProcessHostImpl::AddFilter(BrowserMessageFilter* filter) {
2100 channel_->AddFilter(filter->GetFilter()); 2101 channel_->AddFilter(filter->GetFilter());
2101 } 2102 }
2102 2103
2104 void RenderProcessHostImpl::AddOwnedInterface(
2105 std::unique_ptr<OwnedInterface> impl) {
2106 owned_interface_impls_.push_back(std::move(impl));
2107 }
2108
2103 bool RenderProcessHostImpl::FastShutdownForPageCount(size_t count) { 2109 bool RenderProcessHostImpl::FastShutdownForPageCount(size_t count) {
2104 if (GetActiveViewCount() == count) 2110 if (GetActiveViewCount() == count)
2105 return FastShutdownIfPossible(); 2111 return FastShutdownIfPossible();
2106 return false; 2112 return false;
2107 } 2113 }
2108 2114
2109 bool RenderProcessHostImpl::FastShutdownStarted() const { 2115 bool RenderProcessHostImpl::FastShutdownStarted() const {
2110 return fast_shutdown_started_; 2116 return fast_shutdown_started_;
2111 } 2117 }
2112 2118
(...skipping 688 matching lines...) Expand 10 before | Expand all | Expand 10 after
2801 LOG(ERROR) << "Terminating render process for bad Mojo message: " << error; 2807 LOG(ERROR) << "Terminating render process for bad Mojo message: " << error;
2802 2808
2803 // The ReceivedBadMessage call below will trigger a DumpWithoutCrashing. Alias 2809 // The ReceivedBadMessage call below will trigger a DumpWithoutCrashing. Alias
2804 // enough information here so that we can determine what the bad message was. 2810 // enough information here so that we can determine what the bad message was.
2805 base::debug::Alias(&error); 2811 base::debug::Alias(&error);
2806 bad_message::ReceivedBadMessage(process.get(), 2812 bad_message::ReceivedBadMessage(process.get(),
2807 bad_message::RPH_MOJO_PROCESS_ERROR); 2813 bad_message::RPH_MOJO_PROCESS_ERROR);
2808 } 2814 }
2809 2815
2810 } // namespace content 2816 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698