OLD | NEW |
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 "mandoline/services/core_services/core_services_application_delegate.h" | 5 #include "mandoline/services/core_services/core_services_application_delegate.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/single_thread_task_runner.h" | 8 #include "base/single_thread_task_runner.h" |
9 #include "base/threading/simple_thread.h" | 9 #include "base/threading/simple_thread.h" |
10 #include "components/clipboard/clipboard_application_delegate.h" | 10 #include "components/clipboard/clipboard_application_delegate.h" |
11 #include "components/filesystem/file_system_app.h" | 11 #include "components/filesystem/file_system_app.h" |
12 #include "components/view_manager/surfaces/surfaces_service_application.h" | 12 #include "components/view_manager/surfaces/surfaces_service_application.h" |
13 #include "mandoline/ui/browser/browser_manager.h" | 13 #include "mandoline/ui/browser/browser_manager.h" |
14 #include "mojo/application/public/cpp/application_connection.h" | 14 #include "mojo/application/public/cpp/application_connection.h" |
15 #include "mojo/application/public/cpp/application_impl.h" | 15 #include "mojo/application/public/cpp/application_impl.h" |
16 #include "mojo/application/public/cpp/application_runner.h" | 16 #include "mojo/application/public/cpp/application_runner.h" |
17 #include "mojo/common/message_pump_mojo.h" | 17 #include "mojo/message_pump/message_pump_mojo.h" |
18 #include "mojo/services/tracing/tracing_app.h" | 18 #include "mojo/services/tracing/tracing_app.h" |
19 #include "url/gurl.h" | 19 #include "url/gurl.h" |
20 | 20 |
21 #if defined(USE_AURA) | 21 #if defined(USE_AURA) |
22 #include "mandoline/ui/omnibox/omnibox_impl.h" | 22 #include "mandoline/ui/omnibox/omnibox_impl.h" |
23 #endif | 23 #endif |
24 | 24 |
25 #if !defined(OS_ANDROID) | 25 #if !defined(OS_ANDROID) |
26 #include "components/resource_provider/resource_provider_app.h" | 26 #include "components/resource_provider/resource_provider_app.h" |
27 #include "components/view_manager/view_manager_app.h" | 27 #include "components/view_manager/view_manager_app.h" |
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
152 } | 152 } |
153 | 153 |
154 scoped_ptr<ApplicationThread> thread( | 154 scoped_ptr<ApplicationThread> thread( |
155 new ApplicationThread(weak_factory_.GetWeakPtr(), url, delegate.Pass(), | 155 new ApplicationThread(weak_factory_.GetWeakPtr(), url, delegate.Pass(), |
156 request.Pass())); | 156 request.Pass())); |
157 thread->Start(); | 157 thread->Start(); |
158 application_threads_.push_back(thread.Pass()); | 158 application_threads_.push_back(thread.Pass()); |
159 } | 159 } |
160 | 160 |
161 } // namespace core_services | 161 } // namespace core_services |
OLD | NEW |