| 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 "jingle/glue/thread_wrapper.h" | 5 #include "jingle/glue/thread_wrapper.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/bind_helpers.h" | 8 #include "base/bind_helpers.h" |
| 9 #include "base/lazy_instance.h" | 9 #include "base/lazy_instance.h" |
| 10 #include "base/threading/thread_local.h" | 10 #include "base/threading/thread_local.h" |
| 11 #include "third_party/libjingle/source/talk/base/nullsocketserver.h" | 11 #include "third_party/libjingle/source/talk/base/nullsocketserver.h" |
| 12 | 12 |
| 13 namespace jingle_glue { | 13 namespace jingle_glue { |
| 14 | 14 |
| 15 struct JingleThreadWrapper::PendingSend { | 15 struct JingleThreadWrapper::PendingSend { |
| 16 PendingSend(const talk_base::Message& message_value) | 16 explicit PendingSend(const talk_base::Message& message_value) |
| 17 : sending_thread(JingleThreadWrapper::current()), | 17 : sending_thread(JingleThreadWrapper::current()), |
| 18 message(message_value), | 18 message(message_value), |
| 19 done_event(true, false) { | 19 done_event(true, false) { |
| 20 DCHECK(sending_thread); | 20 DCHECK(sending_thread); |
| 21 } | 21 } |
| 22 | 22 |
| 23 JingleThreadWrapper* sending_thread; | 23 JingleThreadWrapper* sending_thread; |
| 24 talk_base::Message message; | 24 talk_base::Message message; |
| 25 base::WaitableEvent done_event; | 25 base::WaitableEvent done_event; |
| 26 }; | 26 }; |
| (...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 293 | 293 |
| 294 void JingleThreadWrapper::Stop() { | 294 void JingleThreadWrapper::Stop() { |
| 295 NOTREACHED(); | 295 NOTREACHED(); |
| 296 } | 296 } |
| 297 | 297 |
| 298 void JingleThreadWrapper::Run() { | 298 void JingleThreadWrapper::Run() { |
| 299 NOTREACHED(); | 299 NOTREACHED(); |
| 300 } | 300 } |
| 301 | 301 |
| 302 } // namespace jingle_glue | 302 } // namespace jingle_glue |
| OLD | NEW |