| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2012 The WebRTC project authors. All Rights Reserved. | 2 * Copyright 2012 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 // This file contains structures used for retrieving statistics from an ongoing | 11 // This file contains structures used for retrieving statistics from an ongoing |
| 12 // libjingle session. | 12 // libjingle session. |
| 13 | 13 |
| 14 #ifndef WEBRTC_API_STATSTYPES_H_ | 14 #ifndef WEBRTC_API_STATSTYPES_H_ |
| 15 #define WEBRTC_API_STATSTYPES_H_ | 15 #define WEBRTC_API_STATSTYPES_H_ |
| 16 | 16 |
| 17 #include <algorithm> | 17 #include <algorithm> |
| 18 #include <list> | 18 #include <list> |
| 19 #include <map> | 19 #include <map> |
| 20 #include <string> | 20 #include <string> |
| 21 | 21 |
| 22 #include "webrtc/base/basictypes.h" | 22 #include "webrtc/base/basictypes.h" |
| 23 #include "webrtc/base/common.h" | 23 #include "webrtc/base/common.h" |
| 24 #include "webrtc/base/constructormagic.h" | 24 #include "webrtc/base/constructormagic.h" |
| 25 #include "webrtc/base/linked_ptr.h" | 25 #include "webrtc/base/linked_ptr.h" |
| 26 #include "webrtc/base/refcount.h" | 26 #include "webrtc/base/refcount.h" |
| 27 #include "webrtc/base/scoped_ptr.h" | |
| 28 #include "webrtc/base/scoped_ref_ptr.h" | 27 #include "webrtc/base/scoped_ref_ptr.h" |
| 29 #include "webrtc/base/stringencode.h" | 28 #include "webrtc/base/stringencode.h" |
| 30 #include "webrtc/base/thread_checker.h" | 29 #include "webrtc/base/thread_checker.h" |
| 31 | 30 |
| 32 namespace webrtc { | 31 namespace webrtc { |
| 33 | 32 |
| 34 class StatsReport { | 33 class StatsReport { |
| 35 public: | 34 public: |
| 36 // Indicates whether a track is for sending or receiving. | 35 // Indicates whether a track is for sending or receiving. |
| 37 // Used in reports for audio/video tracks. | 36 // Used in reports for audio/video tracks. |
| (...skipping 357 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 395 StatsReport* Find(const StatsReport::Id& id); | 394 StatsReport* Find(const StatsReport::Id& id); |
| 396 | 395 |
| 397 private: | 396 private: |
| 398 Container list_; | 397 Container list_; |
| 399 rtc::ThreadChecker thread_checker_; | 398 rtc::ThreadChecker thread_checker_; |
| 400 }; | 399 }; |
| 401 | 400 |
| 402 } // namespace webrtc | 401 } // namespace webrtc |
| 403 | 402 |
| 404 #endif // WEBRTC_API_STATSTYPES_H_ | 403 #endif // WEBRTC_API_STATSTYPES_H_ |
| OLD | NEW |