OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "remoting/base/auto_thread.h" | 5 #include "remoting/base/auto_thread.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/synchronization/waitable_event.h" |
9 #include "base/third_party/dynamic_annotations/dynamic_annotations.h" | 10 #include "base/third_party/dynamic_annotations/dynamic_annotations.h" |
10 #include "base/threading/thread_local.h" | 11 #include "base/threading/thread_local.h" |
11 #include "base/threading/thread_restrictions.h" | 12 #include "base/threading/thread_restrictions.h" |
12 #include "base/synchronization/waitable_event.h" | 13 #include "build/build_config.h" |
13 #include "remoting/base/auto_thread_task_runner.h" | 14 #include "remoting/base/auto_thread_task_runner.h" |
14 | 15 |
15 #if defined(OS_WIN) | 16 #if defined(OS_WIN) |
16 #include "base/win/scoped_com_initializer.h" | 17 #include "base/win/scoped_com_initializer.h" |
17 #endif | 18 #endif |
18 | 19 |
19 namespace remoting { | 20 namespace remoting { |
20 | 21 |
21 namespace { | 22 namespace { |
22 | 23 |
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
205 CreateComInitializer(com_init_type_)); | 206 CreateComInitializer(com_init_type_)); |
206 #endif | 207 #endif |
207 | 208 |
208 message_loop.Run(); | 209 message_loop.Run(); |
209 | 210 |
210 // Assert that MessageLoop::QuitWhenIdle was called by AutoThread::QuitThread. | 211 // Assert that MessageLoop::QuitWhenIdle was called by AutoThread::QuitThread. |
211 DCHECK(was_quit_properly_); | 212 DCHECK(was_quit_properly_); |
212 } | 213 } |
213 | 214 |
214 } // namespace base | 215 } // namespace base |
OLD | NEW |