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

Unified Diff: content/browser/renderer_host/render_process_host_impl.cc

Issue 2420253002: Rename shell namespace to service_manager (Closed)
Patch Set: . Created 4 years, 2 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/renderer_host/render_process_host_impl.cc
diff --git a/content/browser/renderer_host/render_process_host_impl.cc b/content/browser/renderer_host/render_process_host_impl.cc
index b3278ed5769248f2d3c9c177db4e3f5af97e9e55..7cf7da9733d009c8ea7c7e42160339768f2f7275 100644
--- a/content/browser/renderer_host/render_process_host_impl.cc
+++ b/content/browser/renderer_host/render_process_host_impl.cc
@@ -518,8 +518,8 @@ class RenderProcessHostImpl::ConnectionFilterController
class RenderProcessHostImpl::ConnectionFilterImpl : public ConnectionFilter {
public:
ConnectionFilterImpl(
- const shell::Identity& child_identity,
- std::unique_ptr<shell::InterfaceRegistry> registry)
+ const service_manager::Identity& child_identity,
+ std::unique_ptr<service_manager::InterfaceRegistry> registry)
: child_identity_(child_identity),
registry_(std::move(registry)),
controller_(new ConnectionFilterController(this)),
@@ -546,9 +546,9 @@ class RenderProcessHostImpl::ConnectionFilterImpl : public ConnectionFilter {
private:
// ConnectionFilter:
- bool OnConnect(const shell::Identity& remote_identity,
- shell::InterfaceRegistry* registry,
- shell::Connector* connector) override {
+ bool OnConnect(const service_manager::Identity& remote_identity,
+ service_manager::InterfaceRegistry* registry,
+ service_manager::Connector* connector) override {
DCHECK(thread_checker_.CalledOnValidThread());
DCHECK_CURRENTLY_ON(BrowserThread::IO);
// We only fulfill connections from the renderer we host.
@@ -578,7 +578,7 @@ class RenderProcessHostImpl::ConnectionFilterImpl : public ConnectionFilter {
mojo::ScopedMessagePipeHandle handle) {
DCHECK(thread_checker_.CalledOnValidThread());
DCHECK_CURRENTLY_ON(BrowserThread::IO);
- shell::mojom::InterfaceProvider* provider = registry_.get();
+ service_manager::mojom::InterfaceProvider* provider = registry_.get();
base::AutoLock lock(enabled_lock_);
if (enabled_)
@@ -586,8 +586,8 @@ class RenderProcessHostImpl::ConnectionFilterImpl : public ConnectionFilter {
}
base::ThreadChecker thread_checker_;
- shell::Identity child_identity_;
- std::unique_ptr<shell::InterfaceRegistry> registry_;
+ service_manager::Identity child_identity_;
+ std::unique_ptr<service_manager::InterfaceRegistry> registry_;
scoped_refptr<ConnectionFilterController> controller_;
// Guards |enabled_|.
@@ -953,7 +953,7 @@ void RenderProcessHostImpl::InitializeChannelProxy() {
// Acquire a Connector which will route connections to a new instance of the
// renderer service.
- shell::Connector* connector =
+ service_manager::Connector* connector =
BrowserContext::GetConnectorFor(browser_context_);
if (!connector) {
// Note that some embedders (e.g. Android WebView) may not initialize a
@@ -964,7 +964,8 @@ void RenderProcessHostImpl::InitializeChannelProxy() {
// ServiceManagerConnection prior to this point. This class of test code
// doesn't care about render processes, so we can initialize a dummy
// connection.
- shell::mojom::ServiceRequest request = mojo::GetProxy(&test_service_);
+ service_manager::mojom::ServiceRequest request =
+ mojo::GetProxy(&test_service_);
ServiceManagerConnection::SetForProcess(ServiceManagerConnection::Create(
std::move(request), io_task_runner));
}
@@ -1225,8 +1226,8 @@ void RenderProcessHostImpl::CreateMessageFilters() {
}
void RenderProcessHostImpl::RegisterMojoInterfaces() {
- std::unique_ptr<shell::InterfaceRegistry> registry(
- new shell::InterfaceRegistry);
+ std::unique_ptr<service_manager::InterfaceRegistry> registry(
+ new service_manager::InterfaceRegistry);
channel_->AddAssociatedInterface(
base::Bind(&RenderProcessHostImpl::OnRouteProviderRequest,
@@ -1359,7 +1360,8 @@ void RenderProcessHostImpl::ResumeDeferredNavigation(
widget_helper_->ResumeDeferredNavigation(request_id);
}
-shell::InterfaceProvider* RenderProcessHostImpl::GetRemoteInterfaces() {
+service_manager::InterfaceProvider*
+RenderProcessHostImpl::GetRemoteInterfaces() {
return child_connection_->GetRemoteInterfaces();
}
« no previous file with comments | « content/browser/renderer_host/render_process_host_impl.h ('k') | content/browser/service_manager/service_manager_context.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698