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 "shell/android/main.h" | 5 #include "shell/android/main.h" |
6 | 6 |
7 #include <stdio.h> | 7 #include <stdio.h> |
8 | 8 |
9 #include "base/android/fifo_utils.h" | 9 #include "base/android/fifo_utils.h" |
10 #include "base/android/jni_android.h" | 10 #include "base/android/jni_android.h" |
11 #include "base/android/jni_array.h" | 11 #include "base/android/jni_array.h" |
12 #include "base/android/jni_string.h" | 12 #include "base/android/jni_string.h" |
13 #include "base/at_exit.h" | 13 #include "base/at_exit.h" |
14 #include "base/bind.h" | 14 #include "base/bind.h" |
15 #include "base/command_line.h" | 15 #include "base/command_line.h" |
16 #include "base/files/file_path.h" | 16 #include "base/files/file_path.h" |
17 #include "base/files/file_util.h" | 17 #include "base/files/file_util.h" |
18 #include "base/lazy_instance.h" | 18 #include "base/lazy_instance.h" |
19 #include "base/logging.h" | 19 #include "base/logging.h" |
20 #include "base/macros.h" | 20 #include "base/macros.h" |
21 #include "base/message_loop/message_loop.h" | 21 #include "base/message_loop/message_loop.h" |
22 #include "base/run_loop.h" | 22 #include "base/run_loop.h" |
23 #include "base/synchronization/waitable_event.h" | 23 #include "base/synchronization/waitable_event.h" |
24 #include "base/task_runner_util.h" | 24 #include "base/task_runner_util.h" |
25 #include "base/threading/simple_thread.h" | 25 #include "base/threading/simple_thread.h" |
26 #include "gpu/config/gpu_util.h" | 26 #include "gpu/config/gpu_util.h" |
27 #include "jni/ShellService_jni.h" | 27 #include "jni/ShellService_jni.h" |
28 #include "mojo/message_pump/message_pump_mojo.h" | 28 #include "mojo/message_pump/message_pump_mojo.h" |
29 #include "mojo/services/network/public/interfaces/network_service.mojom.h" | 29 #include "mojo/services/network/public/interfaces/network_service.mojom.h" |
30 #include "mojo/services/window_manager/public/interfaces/window_manager.mojom.h" | 30 #include "mojo/services/window_manager/interfaces/window_manager.mojom.h" |
31 #include "shell/android/android_handler_loader.h" | 31 #include "shell/android/android_handler_loader.h" |
32 #include "shell/android/java_application_loader.h" | 32 #include "shell/android/java_application_loader.h" |
33 #include "shell/android/native_viewport_application_loader.h" | 33 #include "shell/android/native_viewport_application_loader.h" |
34 #include "shell/android/ui_application_loader_android.h" | 34 #include "shell/android/ui_application_loader_android.h" |
35 #include "shell/android/url_response_disk_cache_delegate_impl.h" | 35 #include "shell/android/url_response_disk_cache_delegate_impl.h" |
36 #include "shell/application_manager/application_loader.h" | 36 #include "shell/application_manager/application_loader.h" |
37 #include "shell/background_application_loader.h" | 37 #include "shell/background_application_loader.h" |
38 #include "shell/command_line_util.h" | 38 #include "shell/command_line_util.h" |
39 #include "shell/context.h" | 39 #include "shell/context.h" |
40 #include "shell/crash/breakpad.h" | 40 #include "shell/crash/breakpad.h" |
(...skipping 301 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
342 mojo::MessagePipeHandle(services_handle))), | 342 mojo::MessagePipeHandle(services_handle))), |
343 base::Passed(mojo::ScopedMessagePipeHandle( | 343 base::Passed(mojo::ScopedMessagePipeHandle( |
344 mojo::MessagePipeHandle(exposed_services_handle))))); | 344 mojo::MessagePipeHandle(exposed_services_handle))))); |
345 } | 345 } |
346 | 346 |
347 bool RegisterShellService(JNIEnv* env) { | 347 bool RegisterShellService(JNIEnv* env) { |
348 return RegisterNativesImpl(env); | 348 return RegisterNativesImpl(env); |
349 } | 349 } |
350 | 350 |
351 } // namespace shell | 351 } // namespace shell |
OLD | NEW |