OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |