OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2004 The WebRTC Project Authors. All rights reserved. | 2 * Copyright 2004 The WebRTC Project Authors. All rights reserved. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
9 */ | 9 */ |
10 | 10 |
11 #ifndef WEBRTC_RTC_BASE_MESSAGEQUEUE_H_ | 11 #ifndef WEBRTC_RTC_BASE_MESSAGEQUEUE_H_ |
12 #define WEBRTC_RTC_BASE_MESSAGEQUEUE_H_ | 12 #define WEBRTC_RTC_BASE_MESSAGEQUEUE_H_ |
13 | 13 |
14 #include <string.h> | 14 #include <string.h> |
15 | 15 |
16 #include <algorithm> | 16 #include <algorithm> |
17 #include <list> | 17 #include <list> |
18 #include <memory> | 18 #include <memory> |
19 #include <queue> | 19 #include <queue> |
20 #include <utility> | 20 #include <utility> |
21 #include <vector> | 21 #include <vector> |
22 | 22 |
23 #include "webrtc/rtc_base/basictypes.h" | 23 #include "webrtc/base/basictypes.h" |
24 #include "webrtc/rtc_base/constructormagic.h" | 24 #include "webrtc/base/constructormagic.h" |
25 #include "webrtc/rtc_base/criticalsection.h" | 25 #include "webrtc/base/criticalsection.h" |
26 #include "webrtc/rtc_base/location.h" | 26 #include "webrtc/base/location.h" |
27 #include "webrtc/rtc_base/messagehandler.h" | 27 #include "webrtc/base/messagehandler.h" |
28 #include "webrtc/rtc_base/scoped_ref_ptr.h" | 28 #include "webrtc/base/scoped_ref_ptr.h" |
29 #include "webrtc/rtc_base/sigslot.h" | 29 #include "webrtc/base/sigslot.h" |
30 #include "webrtc/rtc_base/socketserver.h" | 30 #include "webrtc/base/socketserver.h" |
31 #include "webrtc/rtc_base/thread_annotations.h" | 31 #include "webrtc/base/timeutils.h" |
32 #include "webrtc/rtc_base/timeutils.h" | 32 #include "webrtc/base/thread_annotations.h" |
33 | 33 |
34 namespace rtc { | 34 namespace rtc { |
35 | 35 |
36 struct Message; | 36 struct Message; |
37 class MessageQueue; | 37 class MessageQueue; |
38 | 38 |
39 // MessageQueueManager does cleanup of of message queues | 39 // MessageQueueManager does cleanup of of message queues |
40 | 40 |
41 class MessageQueueManager { | 41 class MessageQueueManager { |
42 public: | 42 public: |
(...skipping 308 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
351 SocketServer* const ss_; | 351 SocketServer* const ss_; |
352 // Used if SocketServer ownership lies with |this|. | 352 // Used if SocketServer ownership lies with |this|. |
353 std::unique_ptr<SocketServer> own_ss_; | 353 std::unique_ptr<SocketServer> own_ss_; |
354 | 354 |
355 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(MessageQueue); | 355 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(MessageQueue); |
356 }; | 356 }; |
357 | 357 |
358 } // namespace rtc | 358 } // namespace rtc |
359 | 359 |
360 #endif // WEBRTC_RTC_BASE_MESSAGEQUEUE_H_ | 360 #endif // WEBRTC_RTC_BASE_MESSAGEQUEUE_H_ |
OLD | NEW |