| 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 #include "webrtc/p2p/client/socketmonitor.h" | 11 #include "webrtc/p2p/client/socketmonitor.h" | 
| 12 | 12 | 
| 13 #include "webrtc/base/checks.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, | 18   MSG_MONITOR_POLL, | 
| 19   MSG_MONITOR_START, | 19   MSG_MONITOR_START, | 
| 20   MSG_MONITOR_STOP, | 20   MSG_MONITOR_STOP, | 
| 21   MSG_MONITOR_SIGNAL | 21   MSG_MONITOR_SIGNAL | 
| 22 }; | 22 }; | 
| 23 | 23 | 
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 87 | 87 | 
| 88   // Gather connection infos | 88   // Gather connection infos | 
| 89   stats_getter_->GetConnectionStats(&connection_infos_); | 89   stats_getter_->GetConnectionStats(&connection_infos_); | 
| 90 | 90 | 
| 91   // Signal the monitoring thread, start another poll timer | 91   // Signal the monitoring thread, start another poll timer | 
| 92   monitoring_thread_->Post(RTC_FROM_HERE, this, MSG_MONITOR_SIGNAL); | 92   monitoring_thread_->Post(RTC_FROM_HERE, this, MSG_MONITOR_SIGNAL); | 
| 93   network_thread_->PostDelayed(RTC_FROM_HERE, rate_, this, MSG_MONITOR_POLL); | 93   network_thread_->PostDelayed(RTC_FROM_HERE, rate_, this, MSG_MONITOR_POLL); | 
| 94 } | 94 } | 
| 95 | 95 | 
| 96 }  // namespace cricket | 96 }  // namespace cricket | 
| OLD | NEW | 
|---|