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 317 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
328 // Converts the native value to a string representation of the value. | 328 // Converts the native value to a string representation of the value. |
329 std::string ToString() const; | 329 std::string ToString() const; |
330 | 330 |
331 Type type() const { return type_; } | 331 Type type() const { return type_; } |
332 | 332 |
333 // TODO(tommi): Move |name| and |display_name| out of the Value struct. | 333 // TODO(tommi): Move |name| and |display_name| out of the Value struct. |
334 const StatsValueName name; | 334 const StatsValueName name; |
335 | 335 |
336 private: | 336 private: |
337 rtc::ThreadChecker thread_checker_; | 337 rtc::ThreadChecker thread_checker_; |
338 mutable int ref_count_ ACCESS_ON(thread_checker_) = 0; | 338 mutable int ref_count_ RTC_ACCESS_ON(thread_checker_) = 0; |
339 | 339 |
340 const Type type_; | 340 const Type type_; |
341 // TODO(tommi): Use C++ 11 union and make value_ const. | 341 // TODO(tommi): Use C++ 11 union and make value_ const. |
342 union InternalType { | 342 union InternalType { |
343 int int_; | 343 int int_; |
344 int64_t int64_; | 344 int64_t int64_; |
345 float float_; | 345 float float_; |
346 bool bool_; | 346 bool bool_; |
347 std::string* string_; | 347 std::string* string_; |
348 const char* static_string_; | 348 const char* static_string_; |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
435 StatsReport* Find(const StatsReport::Id& id); | 435 StatsReport* Find(const StatsReport::Id& id); |
436 | 436 |
437 private: | 437 private: |
438 Container list_; | 438 Container list_; |
439 rtc::ThreadChecker thread_checker_; | 439 rtc::ThreadChecker thread_checker_; |
440 }; | 440 }; |
441 | 441 |
442 } // namespace webrtc | 442 } // namespace webrtc |
443 | 443 |
444 #endif // WEBRTC_API_STATSTYPES_H_ | 444 #endif // WEBRTC_API_STATSTYPES_H_ |
OLD | NEW |