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 397 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
408 const_iterator begin() const; | 408 const_iterator begin() const; |
409 const_iterator end() const; | 409 const_iterator end() const; |
410 size_t size() const; | 410 size_t size() const; |
411 | 411 |
412 // Creates a new report object with |id| that does not already | 412 // Creates a new report object with |id| that does not already |
413 // exist in the list of reports. | 413 // exist in the list of reports. |
414 StatsReport* InsertNew(const StatsReport::Id& id); | 414 StatsReport* InsertNew(const StatsReport::Id& id); |
415 StatsReport* FindOrAddNew(const StatsReport::Id& id); | 415 StatsReport* FindOrAddNew(const StatsReport::Id& id); |
416 StatsReport* ReplaceOrAddNew(const StatsReport::Id& id); | 416 StatsReport* ReplaceOrAddNew(const StatsReport::Id& id); |
417 | 417 |
418 // Looks for a report with the given |id|. If one is not found, NULL | 418 // Looks for a report with the given |id|. If one is not found, null |
419 // will be returned. | 419 // will be returned. |
420 StatsReport* Find(const StatsReport::Id& id); | 420 StatsReport* Find(const StatsReport::Id& id); |
421 | 421 |
422 private: | 422 private: |
423 Container list_; | 423 Container list_; |
424 rtc::ThreadChecker thread_checker_; | 424 rtc::ThreadChecker thread_checker_; |
425 }; | 425 }; |
426 | 426 |
427 } // namespace webrtc | 427 } // namespace webrtc |
428 | 428 |
429 #endif // WEBRTC_API_STATSTYPES_H_ | 429 #endif // WEBRTC_API_STATSTYPES_H_ |
OLD | NEW |