| 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 #ifndef JINGLE_GLUE_THREAD_WRAPPER_H_ | 5 #ifndef JINGLE_GLUE_THREAD_WRAPPER_H_ |
| 6 #define JINGLE_GLUE_THREAD_WRAPPER_H_ | 6 #define JINGLE_GLUE_THREAD_WRAPPER_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <list> | 10 #include <list> |
| 11 #include <map> | 11 #include <map> |
| 12 | 12 |
| 13 #include "base/compiler_specific.h" | 13 #include "base/compiler_specific.h" |
| 14 #include "base/macros.h" | 14 #include "base/macros.h" |
| 15 #include "base/memory/scoped_ptr.h" |
| 15 #include "base/message_loop/message_loop.h" | 16 #include "base/message_loop/message_loop.h" |
| 16 #include "base/synchronization/lock.h" | 17 #include "base/synchronization/lock.h" |
| 17 #include "base/synchronization/waitable_event.h" | 18 #include "base/synchronization/waitable_event.h" |
| 18 #include "third_party/webrtc/base/thread.h" | 19 #include "third_party/webrtc/base/thread.h" |
| 19 | 20 |
| 20 namespace jingle_glue { | 21 namespace jingle_glue { |
| 21 | 22 |
| 22 // JingleThreadWrapper implements rtc::Thread interface on top of | 23 // JingleThreadWrapper implements rtc::Thread interface on top of |
| 23 // Chromium's SingleThreadTaskRunner interface. Currently only the bare minimum | 24 // Chromium's SingleThreadTaskRunner interface. Currently only the bare minimum |
| 24 // that is used by P2P part of libjingle is implemented. There are two ways to | 25 // that is used by P2P part of libjingle is implemented. There are two ways to |
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 124 | 125 |
| 125 base::WeakPtr<JingleThreadWrapper> weak_ptr_; | 126 base::WeakPtr<JingleThreadWrapper> weak_ptr_; |
| 126 base::WeakPtrFactory<JingleThreadWrapper> weak_ptr_factory_; | 127 base::WeakPtrFactory<JingleThreadWrapper> weak_ptr_factory_; |
| 127 | 128 |
| 128 DISALLOW_COPY_AND_ASSIGN(JingleThreadWrapper); | 129 DISALLOW_COPY_AND_ASSIGN(JingleThreadWrapper); |
| 129 }; | 130 }; |
| 130 | 131 |
| 131 } // namespace jingle_glue | 132 } // namespace jingle_glue |
| 132 | 133 |
| 133 #endif // JINGLE_GLUE_THREAD_WRAPPER_H_ | 134 #endif // JINGLE_GLUE_THREAD_WRAPPER_H_ |
| OLD | NEW |