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 #include <memory> | 12 #include <memory> |
13 | 13 |
14 #include "base/compiler_specific.h" | 14 #include "base/compiler_specific.h" |
15 #include "base/macros.h" | 15 #include "base/macros.h" |
16 #include "base/message_loop/message_loop.h" | 16 #include "base/message_loop/message_loop.h" |
| 17 #include "base/single_thread_task_runner.h" |
17 #include "base/synchronization/lock.h" | 18 #include "base/synchronization/lock.h" |
18 #include "base/synchronization/waitable_event.h" | 19 #include "base/synchronization/waitable_event.h" |
19 #include "third_party/webrtc/base/thread.h" | 20 #include "third_party/webrtc/base/thread.h" |
20 | 21 |
21 namespace jingle_glue { | 22 namespace jingle_glue { |
22 | 23 |
23 // JingleThreadWrapper implements rtc::Thread interface on top of | 24 // JingleThreadWrapper implements rtc::Thread interface on top of |
24 // Chromium's SingleThreadTaskRunner interface. Currently only the bare minimum | 25 // Chromium's SingleThreadTaskRunner interface. Currently only the bare minimum |
25 // that is used by P2P part of libjingle is implemented. There are two ways to | 26 // that is used by P2P part of libjingle is implemented. There are two ways to |
26 // create this object: | 27 // create this object: |
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
130 | 131 |
131 base::WeakPtr<JingleThreadWrapper> weak_ptr_; | 132 base::WeakPtr<JingleThreadWrapper> weak_ptr_; |
132 base::WeakPtrFactory<JingleThreadWrapper> weak_ptr_factory_; | 133 base::WeakPtrFactory<JingleThreadWrapper> weak_ptr_factory_; |
133 | 134 |
134 DISALLOW_COPY_AND_ASSIGN(JingleThreadWrapper); | 135 DISALLOW_COPY_AND_ASSIGN(JingleThreadWrapper); |
135 }; | 136 }; |
136 | 137 |
137 } // namespace jingle_glue | 138 } // namespace jingle_glue |
138 | 139 |
139 #endif // JINGLE_GLUE_THREAD_WRAPPER_H_ | 140 #endif // JINGLE_GLUE_THREAD_WRAPPER_H_ |
OLD | NEW |