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

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: 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..27f177c5eb9a93bb4beab68e0010341d9e32a53b 100644
--- a/media/cast/logging/logging_impl.h
+++ b/media/cast/logging/logging_impl.h
@@ -62,18 +62,20 @@ 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.
+ FrameRawMap GetFrameRawData() const;
+ PacketRawMap GetPacketRawData() const;
+ GenericRawMap GetGenericRawData() const;
+
+ // Get the RTCP data and reset the data.
+ AudioRtcpRawMap GetAndResetAudioRtcpRawData();
+ VideoRtcpRawMap GetAndResetVideoRtcpRawData();
hguihot1 2014/01/23 23:42:50 I don't quite get why these are GetAndReset() (whe
mikhal1 2014/01/29 19:25:49 I would rather them both have a GetAndReset, but y
+
+ // Get stats only.
+ 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