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 "content/browser/mojo/mojo_application_host.h" | 5 #include "content/browser/mojo/mojo_application_host.h" |
6 | 6 |
| 7 #include "build/build_config.h" |
7 #include "content/common/mojo/mojo_messages.h" | 8 #include "content/common/mojo/mojo_messages.h" |
8 #include "content/public/browser/browser_thread.h" | 9 #include "content/public/browser/browser_thread.h" |
9 #include "ipc/ipc_sender.h" | 10 #include "ipc/ipc_sender.h" |
10 #include "third_party/mojo/src/mojo/edk/embedder/platform_channel_pair.h" | 11 #include "third_party/mojo/src/mojo/edk/embedder/platform_channel_pair.h" |
11 | 12 |
12 namespace content { | 13 namespace content { |
13 namespace { | 14 namespace { |
14 | 15 |
15 base::PlatformFile PlatformFileFromScopedPlatformHandle( | 16 base::PlatformFile PlatformFileFromScopedPlatformHandle( |
16 mojo::embedder::ScopedPlatformHandle handle) { | 17 mojo::embedder::ScopedPlatformHandle handle) { |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
101 void MojoApplicationHost::WillDestroySoon() { | 102 void MojoApplicationHost::WillDestroySoon() { |
102 channel_init_.WillDestroySoon(); | 103 channel_init_.WillDestroySoon(); |
103 } | 104 } |
104 | 105 |
105 void MojoApplicationHost::OverrideIOTaskRunnerForTest( | 106 void MojoApplicationHost::OverrideIOTaskRunnerForTest( |
106 scoped_refptr<base::TaskRunner> io_task_runner) { | 107 scoped_refptr<base::TaskRunner> io_task_runner) { |
107 io_task_runner_override_ = io_task_runner; | 108 io_task_runner_override_ = io_task_runner; |
108 } | 109 } |
109 | 110 |
110 } // namespace content | 111 } // namespace content |
OLD | NEW |