OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2015 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2015 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 #include "webrtc/video/rtc_event_log.h" | 11 #include "webrtc/call/rtc_event_log.h" |
12 | 12 |
13 #include <deque> | 13 #include <deque> |
14 | 14 |
15 #include "webrtc/base/checks.h" | 15 #include "webrtc/base/checks.h" |
16 #include "webrtc/base/criticalsection.h" | 16 #include "webrtc/base/criticalsection.h" |
17 #include "webrtc/base/thread_annotations.h" | 17 #include "webrtc/base/thread_annotations.h" |
18 #include "webrtc/call.h" | 18 #include "webrtc/call.h" |
19 #include "webrtc/modules/rtp_rtcp/source/byte_io.h" | 19 #include "webrtc/modules/rtp_rtcp/source/byte_io.h" |
20 #include "webrtc/system_wrappers/interface/clock.h" | 20 #include "webrtc/system_wrappers/interface/clock.h" |
21 #include "webrtc/system_wrappers/interface/file_wrapper.h" | 21 #include "webrtc/system_wrappers/interface/file_wrapper.h" |
22 | 22 |
23 #ifdef ENABLE_RTC_EVENT_LOG | 23 #ifdef ENABLE_RTC_EVENT_LOG |
24 // Files generated at build-time by the protobuf compiler. | 24 // Files generated at build-time by the protobuf compiler. |
25 #ifdef WEBRTC_ANDROID_PLATFORM_BUILD | 25 #ifdef WEBRTC_ANDROID_PLATFORM_BUILD |
26 #include "external/webrtc/webrtc/video/rtc_event_log.pb.h" | 26 #include "external/webrtc/webrtc/call/rtc_event_log.pb.h" |
27 #else | 27 #else |
28 #include "webrtc/video/rtc_event_log.pb.h" | 28 #include "webrtc/call/rtc_event_log.pb.h" |
29 #endif | 29 #endif |
30 #endif | 30 #endif |
31 | 31 |
32 namespace webrtc { | 32 namespace webrtc { |
33 | 33 |
34 #ifndef ENABLE_RTC_EVENT_LOG | 34 #ifndef ENABLE_RTC_EVENT_LOG |
35 | 35 |
36 // No-op implementation if flag is not set. | 36 // No-op implementation if flag is not set. |
37 class RtcEventLogImpl final : public RtcEventLog { | 37 class RtcEventLogImpl final : public RtcEventLog { |
38 public: | 38 public: |
(...skipping 357 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
396 return result->ParseFromString(dump_buffer); | 396 return result->ParseFromString(dump_buffer); |
397 } | 397 } |
398 | 398 |
399 #endif // ENABLE_RTC_EVENT_LOG | 399 #endif // ENABLE_RTC_EVENT_LOG |
400 | 400 |
401 // RtcEventLog member functions. | 401 // RtcEventLog member functions. |
402 rtc::scoped_ptr<RtcEventLog> RtcEventLog::Create() { | 402 rtc::scoped_ptr<RtcEventLog> RtcEventLog::Create() { |
403 return rtc::scoped_ptr<RtcEventLog>(new RtcEventLogImpl()); | 403 return rtc::scoped_ptr<RtcEventLog>(new RtcEventLogImpl()); |
404 } | 404 } |
405 } // namespace webrtc | 405 } // namespace webrtc |
OLD | NEW |