OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2005 The WebRTC project authors. All Rights Reserved. | 2 * Copyright 2005 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/base/checks.h" | 11 #include "webrtc/pc/mediamonitor.h" |
12 #include "webrtc/pc/channelmanager.h" | 12 #include "webrtc/pc/channelmanager.h" |
13 #include "webrtc/pc/mediamonitor.h" | 13 #include "webrtc/rtc_base/checks.h" |
14 | 14 |
15 namespace cricket { | 15 namespace cricket { |
16 | 16 |
17 enum { | 17 enum { |
18 MSG_MONITOR_POLL = 1, | 18 MSG_MONITOR_POLL = 1, |
19 MSG_MONITOR_START = 2, | 19 MSG_MONITOR_START = 2, |
20 MSG_MONITOR_STOP = 3, | 20 MSG_MONITOR_STOP = 3, |
21 MSG_MONITOR_SIGNAL = 4 | 21 MSG_MONITOR_SIGNAL = 4 |
22 }; | 22 }; |
23 | 23 |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 RTC_DCHECK(rtc::Thread::Current() == worker_thread_); | 82 RTC_DCHECK(rtc::Thread::Current() == worker_thread_); |
83 | 83 |
84 GetStats(); | 84 GetStats(); |
85 | 85 |
86 // Signal the monitoring thread, start another poll timer | 86 // Signal the monitoring thread, start another poll timer |
87 monitor_thread_->Post(RTC_FROM_HERE, this, MSG_MONITOR_SIGNAL); | 87 monitor_thread_->Post(RTC_FROM_HERE, this, MSG_MONITOR_SIGNAL); |
88 worker_thread_->PostDelayed(RTC_FROM_HERE, rate_, this, MSG_MONITOR_POLL); | 88 worker_thread_->PostDelayed(RTC_FROM_HERE, rate_, this, MSG_MONITOR_POLL); |
89 } | 89 } |
90 | 90 |
91 } // namespace cricket | 91 } // namespace cricket |
OLD | NEW |