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

Unified Diff: media/cast/logging/logging_impl.h

Issue 130423007: Cast:Updating logging stats (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Responding to Review Created 6 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 side-by-side diff with in-line comments
Download patch
Index: media/cast/logging/logging_impl.h
diff --git a/media/cast/logging/logging_impl.h b/media/cast/logging/logging_impl.h
index bf518699c230dd37ae722c0c8a16fcd8fa2431a4..51646ef14cf20345ecb33e022649058d30dc2cf2 100644
--- a/media/cast/logging/logging_impl.h
+++ b/media/cast/logging/logging_impl.h
@@ -62,18 +62,24 @@ class LoggingImpl : public base::NonThreadSafe {
int value);
// Get raw data.
- FrameRawMap GetFrameRawData();
- PacketRawMap GetPacketRawData();
- GenericRawMap GetGenericRawData();
- AudioRtcpRawMap GetAudioRtcpRawData();
- VideoRtcpRawMap GetVideoRtcpRawData();
-
- // Get stats only (computed when called). Triggers UMA stats when enabled.
- const FrameStatsMap* GetFrameStatsData(const base::TimeTicks& now);
- const PacketStatsMap* GetPacketStatsData(const base::TimeTicks& now);
- const GenericStatsMap* GetGenericStatsData();
-
- // Reset raw logging data.
+ // Pointers are owned by the logging class, and are assumed valid on the main
imcheng 2014/01/23 21:17:18 You are returning a copy of the data though, so th
mikhal1 2014/01/23 23:02:17 Done.
+ // thread until Reset is called.
+ FrameRawMap GetFrameRawData() const;
+ PacketRawMap GetPacketRawData() const;
+ GenericRawMap GetGenericRawData() const;
+
+ // Get the RTCP data and reset the data.
+ AudioRtcpRawMap GetAndResetAudioRtcpRawData();
+ VideoRtcpRawMap GetAndResetVideoRtcpRawData();
+
+ // Get stats only.
+ // Pointers are owned by the logging class, and are assumed valid on the main
imcheng 2014/01/23 21:17:18 Same here, the code was changed from returning a p
mikhal1 2014/01/23 23:02:17 Done.
+ // thread until Reset is called.
+ FrameStatsMap GetFrameStatsData() const;
+ PacketStatsMap GetPacketStatsData() const;
+ GenericStatsMap GetGenericStatsData() const;
+
+ // Reset raw logging data (this does not reset the RTCP raw data).
void ResetRaw();
// Reset stats logging data.
void ResetStats();

Powered by Google App Engine
This is Rietveld 408576698