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

Side by Side Diff: mojo/shell/context.cc

Issue 769173002: Move native_viewport and gles2 service impls to //services (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years 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
« no previous file with comments | « mojo/shell/android/library_loader.cc ('k') | services/BUILD.gn » ('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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 "mojo/shell/context.h" 5 #include "mojo/shell/context.h"
6 6
7 #include <vector> 7 #include <vector>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 17 matching lines...) Expand all
28 #include "mojo/shell/external_application_listener.h" 28 #include "mojo/shell/external_application_listener.h"
29 #include "mojo/shell/in_process_dynamic_service_runner.h" 29 #include "mojo/shell/in_process_dynamic_service_runner.h"
30 #include "mojo/shell/out_of_process_dynamic_service_runner.h" 30 #include "mojo/shell/out_of_process_dynamic_service_runner.h"
31 #include "mojo/shell/switches.h" 31 #include "mojo/shell/switches.h"
32 #include "mojo/shell/ui_application_loader_android.h" 32 #include "mojo/shell/ui_application_loader_android.h"
33 #include "mojo/spy/spy.h" 33 #include "mojo/spy/spy.h"
34 #include "services/tracing/tracing.mojom.h" 34 #include "services/tracing/tracing.mojom.h"
35 #include "url/gurl.h" 35 #include "url/gurl.h"
36 36
37 #if defined(OS_ANDROID) 37 #if defined(OS_ANDROID)
38 #include "mojo/services/gles2/gpu_impl.h"
39 #include "mojo/services/native_viewport/native_viewport_impl.h"
40 #include "mojo/shell/android/android_handler_loader.h" 38 #include "mojo/shell/android/android_handler_loader.h"
41 #include "mojo/shell/network_application_loader.h" 39 #include "mojo/shell/network_application_loader.h"
40 #include "services/gles2/gpu_impl.h"
41 #include "services/native_viewport/native_viewport_impl.h"
42 #endif // defined(OS_ANDROID) 42 #endif // defined(OS_ANDROID)
43 43
44 namespace mojo { 44 namespace mojo {
45 namespace shell { 45 namespace shell {
46 namespace { 46 namespace {
47 47
48 // These mojo: URLs are loaded directly from the local filesystem. They 48 // These mojo: URLs are loaded directly from the local filesystem. They
49 // correspond to shared libraries bundled alongside the mojo_shell. 49 // correspond to shared libraries bundled alongside the mojo_shell.
50 const char* kLocalMojoURLs[] = { 50 const char* kLocalMojoURLs[] = {
51 "mojo:network_service", 51 "mojo:network_service",
(...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after
309 ScopedMessagePipeHandle Context::ConnectToServiceByName( 309 ScopedMessagePipeHandle Context::ConnectToServiceByName(
310 const GURL& application_url, 310 const GURL& application_url,
311 const std::string& service_name) { 311 const std::string& service_name) {
312 app_urls_.insert(application_url); 312 app_urls_.insert(application_url);
313 return application_manager_.ConnectToServiceByName( 313 return application_manager_.ConnectToServiceByName(
314 application_url, service_name).Pass(); 314 application_url, service_name).Pass();
315 } 315 }
316 316
317 } // namespace shell 317 } // namespace shell
318 } // namespace mojo 318 } // namespace mojo
OLDNEW
« no previous file with comments | « mojo/shell/android/library_loader.cc ('k') | services/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698