OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2016 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2016 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_CALL_RTC_EVENT_LOG_HELPER_THREAD_H_ | 11 #ifndef WEBRTC_CALL_RTC_EVENT_LOG_HELPER_THREAD_H_ |
12 #define WEBRTC_CALL_RTC_EVENT_LOG_HELPER_THREAD_H_ | 12 #define WEBRTC_CALL_RTC_EVENT_LOG_HELPER_THREAD_H_ |
13 | 13 |
14 #include <limits> | 14 #include <limits> |
15 #include <memory> | 15 #include <memory> |
16 #include <string> | 16 #include <string> |
17 #include <utility> | 17 #include <utility> |
18 #include <vector> | 18 #include <vector> |
19 | 19 |
20 #include "webrtc/base/constructormagic.h" | 20 #include "webrtc/base/constructormagic.h" |
21 #include "webrtc/base/event.h" | 21 #include "webrtc/base/event.h" |
| 22 #include "webrtc/base/ignore_wundef.h" |
22 #include "webrtc/base/platform_thread.h" | 23 #include "webrtc/base/platform_thread.h" |
23 #include "webrtc/base/swap_queue.h" | 24 #include "webrtc/base/swap_queue.h" |
24 #include "webrtc/call/ringbuffer.h" | 25 #include "webrtc/call/ringbuffer.h" |
25 #include "webrtc/system_wrappers/include/clock.h" | 26 #include "webrtc/system_wrappers/include/clock.h" |
26 #include "webrtc/system_wrappers/include/file_wrapper.h" | 27 #include "webrtc/system_wrappers/include/file_wrapper.h" |
27 | 28 |
28 #ifdef ENABLE_RTC_EVENT_LOG | 29 #ifdef ENABLE_RTC_EVENT_LOG |
29 // Files generated at build-time by the protobuf compiler. | 30 // Files generated at build-time by the protobuf compiler. |
| 31 RTC_PUSH_IGNORING_WUNDEF() |
30 #ifdef WEBRTC_ANDROID_PLATFORM_BUILD | 32 #ifdef WEBRTC_ANDROID_PLATFORM_BUILD |
31 #include "external/webrtc/webrtc/call/rtc_event_log.pb.h" | 33 #include "external/webrtc/webrtc/call/rtc_event_log.pb.h" |
32 #else | 34 #else |
33 #include "webrtc/call/rtc_event_log.pb.h" | 35 #include "webrtc/call/rtc_event_log.pb.h" |
34 #endif | 36 #endif |
| 37 RTC_POP_IGNORING_WUNDEF() |
35 #endif | 38 #endif |
36 | 39 |
37 #ifdef ENABLE_RTC_EVENT_LOG | 40 #ifdef ENABLE_RTC_EVENT_LOG |
38 | 41 |
39 namespace webrtc { | 42 namespace webrtc { |
40 | 43 |
41 class RtcEventLogHelperThread final { | 44 class RtcEventLogHelperThread final { |
42 public: | 45 public: |
43 struct ControlMessage { | 46 struct ControlMessage { |
44 ControlMessage() | 47 ControlMessage() |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
120 const Clock* const clock_; | 123 const Clock* const clock_; |
121 | 124 |
122 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(RtcEventLogHelperThread); | 125 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(RtcEventLogHelperThread); |
123 }; | 126 }; |
124 | 127 |
125 } // namespace webrtc | 128 } // namespace webrtc |
126 | 129 |
127 #endif // ENABLE_RTC_EVENT_LOG | 130 #endif // ENABLE_RTC_EVENT_LOG |
128 | 131 |
129 #endif // WEBRTC_CALL_RTC_EVENT_LOG_HELPER_THREAD_H_ | 132 #endif // WEBRTC_CALL_RTC_EVENT_LOG_HELPER_THREAD_H_ |
OLD | NEW |