OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 <list> | 8 #include <list> |
9 #include <map> | 9 #include <map> |
10 | 10 |
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
106 // |lock_| must be locked when accessing |messages_|. | 106 // |lock_| must be locked when accessing |messages_|. |
107 base::Lock lock_; | 107 base::Lock lock_; |
108 int last_task_id_; | 108 int last_task_id_; |
109 MessagesQueue messages_; | 109 MessagesQueue messages_; |
110 std::list<PendingSend*> pending_send_messages_; | 110 std::list<PendingSend*> pending_send_messages_; |
111 base::WaitableEvent pending_send_event_; | 111 base::WaitableEvent pending_send_event_; |
112 }; | 112 }; |
113 | 113 |
114 } | 114 } |
115 | 115 |
116 // Safe to disable refcounting because JingleThreadWrapper deletes | |
117 // itself with the thread. | |
118 DISABLE_RUNNABLE_METHOD_REFCOUNT(jingle_glue::JingleThreadWrapper); | |
119 | |
120 #endif // JINGLE_GLUE_THREAD_WRAPPER_H_ | 116 #endif // JINGLE_GLUE_THREAD_WRAPPER_H_ |
OLD | NEW |