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 "mojo/shell/external_application_listener_posix.h" | 5 #include "mojo/shell/external_application_listener_posix.h" |
6 | 6 |
7 #include "base/callback.h" | 7 #include "base/callback.h" |
8 #include "base/files/file_path.h" | 8 #include "base/files/file_path.h" |
9 #include "base/files/file_util.h" | 9 #include "base/files/file_util.h" |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
11 #include "base/memory/ref_counted.h" | 11 #include "base/memory/ref_counted.h" |
12 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
13 #include "base/message_loop/message_loop.h" | 13 #include "base/message_loop/message_loop.h" |
14 #include "base/sequenced_task_runner.h" | 14 #include "base/sequenced_task_runner.h" |
15 #include "base/synchronization/waitable_event.h" | 15 #include "base/synchronization/waitable_event.h" |
16 #include "base/threading/thread_checker.h" | 16 #include "base/threading/thread_checker.h" |
17 #include "base/tracked_objects.h" | 17 #include "base/tracked_objects.h" |
18 #include "mojo/common/common_type_converters.h" | 18 #include "mojo/common/common_type_converters.h" |
19 #include "mojo/edk/embedder/channel_init.h" | 19 #include "mojo/embedder/channel_init.h" |
20 #include "mojo/public/cpp/bindings/error_handler.h" | 20 #include "mojo/public/cpp/bindings/error_handler.h" |
21 #include "mojo/shell/external_application_registrar.mojom.h" | 21 #include "mojo/shell/external_application_registrar.mojom.h" |
22 #include "mojo/shell/incoming_connection_listener_posix.h" | 22 #include "mojo/shell/incoming_connection_listener_posix.h" |
23 #include "net/base/net_errors.h" | 23 #include "net/base/net_errors.h" |
24 #include "net/socket/socket_descriptor.h" | 24 #include "net/socket/socket_descriptor.h" |
25 #include "url/gurl.h" | 25 #include "url/gurl.h" |
26 | 26 |
27 namespace mojo { | 27 namespace mojo { |
28 namespace shell { | 28 namespace shell { |
29 | 29 |
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
192 void ExternalApplicationListenerPosix::RegistrarImpl::Register( | 192 void ExternalApplicationListenerPosix::RegistrarImpl::Register( |
193 const String& app_url, | 193 const String& app_url, |
194 InterfaceRequest<Shell> shell, | 194 InterfaceRequest<Shell> shell, |
195 const mojo::Closure& callback) { | 195 const mojo::Closure& callback) { |
196 register_callback_.Run(app_url.To<GURL>(), shell.PassMessagePipe()); | 196 register_callback_.Run(app_url.To<GURL>(), shell.PassMessagePipe()); |
197 callback.Run(); | 197 callback.Run(); |
198 } | 198 } |
199 | 199 |
200 } // namespace shell | 200 } // namespace shell |
201 } // namespace mojo | 201 } // namespace mojo |
OLD | NEW |