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

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

Issue 2514883002: Create //webrtc/api:libjingle_peerconnection_api + refactorings. (Closed)
Patch Set: Rebase Created 3 years, 11 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 | « webrtc/api/statscollector_unittest.cc ('k') | webrtc/api/statstypes.cc » ('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 324 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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_
OLDNEW
« no previous file with comments | « webrtc/api/statscollector_unittest.cc ('k') | webrtc/api/statstypes.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698