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

Side by Side Diff: content/browser/mojo/mojo_shell_context.cc

Issue 2099423002: Convert UtilityProcess to use MojoChild/ShellConnection for the shell handshake. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@gpu
Patch Set: . 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 #include "content/browser/mojo/mojo_shell_context.h" 5 #include "content/browser/mojo/mojo_shell_context.h"
6 6
7 #include <unordered_map> 7 #include <unordered_map>
8 #include <utility> 8 #include <utility>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after
245 manifests.get()); 245 manifests.get());
246 246
247 manifest_provider_.reset(new BuiltinManifestProvider); 247 manifest_provider_.reset(new BuiltinManifestProvider);
248 manifest_provider_->AddManifests(std::move(manifests)); 248 manifest_provider_->AddManifests(std::move(manifests));
249 manifest_provider_->AddManifestResource(kBrowserMojoApplicationName, 249 manifest_provider_->AddManifestResource(kBrowserMojoApplicationName,
250 IDR_MOJO_CONTENT_BROWSER_MANIFEST); 250 IDR_MOJO_CONTENT_BROWSER_MANIFEST);
251 manifest_provider_->AddManifestResource(kGpuMojoApplicationName, 251 manifest_provider_->AddManifestResource(kGpuMojoApplicationName,
252 IDR_MOJO_CONTENT_GPU_MANIFEST); 252 IDR_MOJO_CONTENT_GPU_MANIFEST);
253 manifest_provider_->AddManifestResource(kRendererMojoApplicationName, 253 manifest_provider_->AddManifestResource(kRendererMojoApplicationName,
254 IDR_MOJO_CONTENT_RENDERER_MANIFEST); 254 IDR_MOJO_CONTENT_RENDERER_MANIFEST);
255 manifest_provider_->AddManifestResource(kUtilityMojoApplicationName,
256 IDR_MOJO_CONTENT_UTILITY_MANIFEST);
255 manifest_provider_->AddManifestResource("mojo:catalog", 257 manifest_provider_->AddManifestResource("mojo:catalog",
256 IDR_MOJO_CATALOG_MANIFEST); 258 IDR_MOJO_CATALOG_MANIFEST);
257 manifest_provider_->AddManifestResource(user_service::kUserServiceName, 259 manifest_provider_->AddManifestResource(user_service::kUserServiceName,
258 IDR_MOJO_PROFILE_MANIFEST); 260 IDR_MOJO_PROFILE_MANIFEST);
259 261
260 catalog_.reset(new catalog::Catalog(file_task_runner.get(), nullptr, 262 catalog_.reset(new catalog::Catalog(file_task_runner.get(), nullptr,
261 manifest_provider_.get())); 263 manifest_provider_.get()));
262 264
263 shell::mojom::ShellClientRequest request; 265 shell::mojom::ShellClientRequest request;
264 if (shell::ShellIsRemote()) { 266 if (shell::ShellIsRemote()) {
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
351 shell::Identity source_id(requestor_name, user_id); 353 shell::Identity source_id(requestor_name, user_id);
352 params->set_source(source_id); 354 params->set_source(source_id);
353 params->set_target(shell::Identity(name, user_id)); 355 params->set_target(shell::Identity(name, user_id));
354 params->set_remote_interfaces(std::move(request)); 356 params->set_remote_interfaces(std::move(request));
355 params->set_local_interfaces(std::move(exposed_services)); 357 params->set_local_interfaces(std::move(exposed_services));
356 params->set_connect_callback(callback); 358 params->set_connect_callback(callback);
357 shell_->Connect(std::move(params)); 359 shell_->Connect(std::move(params));
358 } 360 }
359 361
360 } // namespace content 362 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/mojo/mojo_child_connection.cc ('k') | content/browser/utility_process_host_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698