| 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 |
| (...skipping 324 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 335 } value_; | 335 } value_; |
| 336 | 336 |
| 337 RTC_DISALLOW_COPY_AND_ASSIGN(Value); | 337 RTC_DISALLOW_COPY_AND_ASSIGN(Value); |
| 338 }; | 338 }; |
| 339 | 339 |
| 340 typedef rtc::scoped_refptr<Value> ValuePtr; | 340 typedef rtc::scoped_refptr<Value> ValuePtr; |
| 341 typedef std::map<StatsValueName, ValuePtr> Values; | 341 typedef std::map<StatsValueName, ValuePtr> Values; |
| 342 | 342 |
| 343 // Ownership of |id| is passed to |this|. | 343 // Ownership of |id| is passed to |this|. |
| 344 explicit StatsReport(const Id& id); | 344 explicit StatsReport(const Id& id); |
| 345 ~StatsReport(); |
| 345 | 346 |
| 346 // Factory functions for various types of stats IDs. | 347 // Factory functions for various types of stats IDs. |
| 347 static Id NewBandwidthEstimationId(); | 348 static Id NewBandwidthEstimationId(); |
| 348 static Id NewTypedId(StatsType type, const std::string& id); | 349 static Id NewTypedId(StatsType type, const std::string& id); |
| 349 static Id NewTypedIntId(StatsType type, int id); | 350 static Id NewTypedIntId(StatsType type, int id); |
| 350 static Id NewIdWithDirection( | 351 static Id NewIdWithDirection( |
| 351 StatsType type, const std::string& id, Direction direction); | 352 StatsType type, const std::string& id, Direction direction); |
| 352 static Id NewCandidateId(bool local, const std::string& id); | 353 static Id NewCandidateId(bool local, const std::string& id); |
| 353 static Id NewComponentId( | 354 static Id NewComponentId( |
| 354 const std::string& content_name, int component); | 355 const std::string& content_name, int component); |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 419 StatsReport* Find(const StatsReport::Id& id); | 420 StatsReport* Find(const StatsReport::Id& id); |
| 420 | 421 |
| 421 private: | 422 private: |
| 422 Container list_; | 423 Container list_; |
| 423 rtc::ThreadChecker thread_checker_; | 424 rtc::ThreadChecker thread_checker_; |
| 424 }; | 425 }; |
| 425 | 426 |
| 426 } // namespace webrtc | 427 } // namespace webrtc |
| 427 | 428 |
| 428 #endif // WEBRTC_API_STATSTYPES_H_ | 429 #endif // WEBRTC_API_STATSTYPES_H_ |
| OLD | NEW |