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

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

Issue 304273004: Add name to services (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Get chrome to build Created 6 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « content/browser/mojo/mojo_application_host.cc ('k') | content/child/child_thread.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 // 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 2054 matching lines...) Expand 10 before | Expand all | Expand 10 after
2065 Cleanup(); 2065 Cleanup();
2066 } 2066 }
2067 2067
2068 void RenderProcessHostImpl::ConnectTo( 2068 void RenderProcessHostImpl::ConnectTo(
2069 const base::StringPiece& service_name, 2069 const base::StringPiece& service_name,
2070 mojo::ScopedMessagePipeHandle handle) { 2070 mojo::ScopedMessagePipeHandle handle) {
2071 mojo_activation_required_ = true; 2071 mojo_activation_required_ = true;
2072 MaybeActivateMojo(); 2072 MaybeActivateMojo();
2073 2073
2074 mojo_application_host_->service_provider()->ConnectToService( 2074 mojo_application_host_->service_provider()->ConnectToService(
2075 mojo::String::From(service_name), handle.Pass()); 2075 mojo::String::From(service_name),
2076 std::string(),
2077 handle.Pass());
2076 } 2078 }
2077 2079
2078 } // namespace content 2080 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/mojo/mojo_application_host.cc ('k') | content/child/child_thread.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698