Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(290)

Side by Side Diff: webrtc/api/statstypes.h

Issue 3012853002: Update thread annotiation macros to use RTC_ prefix (Closed)
Patch Set: Rebase Created 3 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | webrtc/audio/audio_receive_stream.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « no previous file | webrtc/audio/audio_receive_stream.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698