| OLD | NEW |
| 1 // Copyright (c) 2014 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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/common/mojo/mojo_channel_init.h" | 5 #include "content/common/mojo/mojo_channel_init.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/lazy_instance.h" | 8 #include "base/lazy_instance.h" |
| 9 #include "base/message_loop/message_loop.h" | 9 #include "base/message_loop/message_loop.h" |
| 10 #include "base/synchronization/lock.h" | 10 #include "base/synchronization/lock.h" |
| 11 #include "mojo/system/embedder/embedder.h" | 11 #include "mojo/embedder/embedder.h" |
| 12 | 12 |
| 13 namespace content { | 13 namespace content { |
| 14 | 14 |
| 15 namespace { | 15 namespace { |
| 16 | 16 |
| 17 struct Initializer { | 17 struct Initializer { |
| 18 Initializer() { | 18 Initializer() { |
| 19 mojo::embedder::Init(); | 19 mojo::embedder::Init(); |
| 20 } | 20 } |
| 21 }; | 21 }; |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 88 io_thread->PostTask( | 88 io_thread->PostTask( |
| 89 FROM_HERE, | 89 FROM_HERE, |
| 90 base::Bind(&mojo::embedder::DestroyChannelOnIOThread, channel)); | 90 base::Bind(&mojo::embedder::DestroyChannelOnIOThread, channel)); |
| 91 return; | 91 return; |
| 92 } | 92 } |
| 93 host->channel_info_ = channel; | 93 host->channel_info_ = channel; |
| 94 } | 94 } |
| 95 | 95 |
| 96 | 96 |
| 97 } // namespace content | 97 } // namespace content |
| OLD | NEW |