OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 <set> | 5 #include <set> |
6 #include <utility> | 6 #include <utility> |
7 | 7 |
8 #include "base/bind.h" | 8 #include "base/bind.h" |
9 #include "base/callback.h" | 9 #include "base/callback.h" |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
11 #include "base/memory/weak_ptr.h" | 11 #include "base/memory/weak_ptr.h" |
| 12 #include "base/message_loop/message_loop.h" |
12 #include "base/single_thread_task_runner.h" | 13 #include "base/single_thread_task_runner.h" |
13 #include "base/thread_task_runner_handle.h" | 14 #include "base/thread_task_runner_handle.h" |
14 #include "base/threading/platform_thread.h" | 15 #include "base/threading/platform_thread.h" |
15 #include "mojo/message_pump/message_pump_mojo.h" | 16 #include "mojo/message_pump/message_pump_mojo.h" |
16 #include "mojo/public/cpp/bindings/strong_binding.h" | 17 #include "mojo/public/cpp/bindings/strong_binding.h" |
17 #include "mojo/shell/public/cpp/application_connection.h" | 18 #include "mojo/shell/public/cpp/application_connection.h" |
18 #include "mojo/shell/public/cpp/application_delegate.h" | |
19 #include "mojo/shell/public/cpp/application_impl.h" | |
20 #include "mojo/shell/public/cpp/application_runner.h" | |
21 #include "mojo/shell/public/cpp/content_handler_factory.h" | 19 #include "mojo/shell/public/cpp/content_handler_factory.h" |
22 #include "mojo/shell/public/cpp/interface_factory_impl.h" | 20 #include "mojo/shell/public/cpp/interface_factory_impl.h" |
23 | 21 |
24 namespace mojo { | 22 namespace mojo { |
25 | 23 |
26 namespace { | 24 namespace { |
27 | 25 |
28 class ApplicationThread : public base::PlatformThread::Delegate { | 26 class ApplicationThread : public base::PlatformThread::Delegate { |
29 public: | 27 public: |
30 ApplicationThread( | 28 ApplicationThread( |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
135 loop.Run(); | 133 loop.Run(); |
136 } | 134 } |
137 | 135 |
138 void ContentHandlerFactory::Create( | 136 void ContentHandlerFactory::Create( |
139 ApplicationConnection* connection, | 137 ApplicationConnection* connection, |
140 InterfaceRequest<shell::mojom::ContentHandler> request) { | 138 InterfaceRequest<shell::mojom::ContentHandler> request) { |
141 new ContentHandlerImpl(delegate_, std::move(request)); | 139 new ContentHandlerImpl(delegate_, std::move(request)); |
142 } | 140 } |
143 | 141 |
144 } // namespace mojo | 142 } // namespace mojo |
OLD | NEW |