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" |
11 #include "base/files/file_path.h" | 11 #include "base/files/file_path.h" |
12 #include "base/lazy_instance.h" | 12 #include "base/lazy_instance.h" |
13 #include "base/macros.h" | 13 #include "base/macros.h" |
14 #include "base/memory/scoped_ptr.h" | 14 #include "base/memory/scoped_ptr.h" |
15 #include "base/memory/scoped_vector.h" | 15 #include "base/memory/scoped_vector.h" |
16 #include "base/strings/string_split.h" | 16 #include "base/strings/string_split.h" |
17 #include "build/build_config.h" | 17 #include "build/build_config.h" |
18 #include "gpu/command_buffer/service/mailbox_manager.h" | 18 #include "gpu/command_buffer/service/mailbox_manager.h" |
19 #include "mojo/application_manager/application_loader.h" | 19 #include "mojo/application_manager/application_loader.h" |
20 #include "mojo/application_manager/application_manager.h" | 20 #include "mojo/application_manager/application_manager.h" |
21 #include "mojo/application_manager/background_shell_application_loader.h" | 21 #include "mojo/application_manager/background_shell_application_loader.h" |
22 #include "mojo/edk/embedder/embedder.h" | 22 #include "mojo/embedder/embedder.h" |
23 #include "mojo/edk/embedder/simple_platform_support.h" | 23 #include "mojo/embedder/simple_platform_support.h" |
24 #include "mojo/public/cpp/application/application_connection.h" | 24 #include "mojo/public/cpp/application/application_connection.h" |
25 #include "mojo/public/cpp/application/application_delegate.h" | 25 #include "mojo/public/cpp/application/application_delegate.h" |
26 #include "mojo/public/cpp/application/application_impl.h" | 26 #include "mojo/public/cpp/application/application_impl.h" |
27 #include "mojo/shell/dynamic_application_loader.h" | 27 #include "mojo/shell/dynamic_application_loader.h" |
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" |
(...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
259 ScopedMessagePipeHandle Context::ConnectToServiceByName( | 259 ScopedMessagePipeHandle Context::ConnectToServiceByName( |
260 const GURL& application_url, | 260 const GURL& application_url, |
261 const std::string& service_name) { | 261 const std::string& service_name) { |
262 app_urls_.insert(application_url); | 262 app_urls_.insert(application_url); |
263 return application_manager_.ConnectToServiceByName( | 263 return application_manager_.ConnectToServiceByName( |
264 application_url, service_name).Pass(); | 264 application_url, service_name).Pass(); |
265 } | 265 } |
266 | 266 |
267 } // namespace shell | 267 } // namespace shell |
268 } // namespace mojo | 268 } // namespace mojo |
OLD | NEW |