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

Side by Side Diff: media/cast/logging/logging_impl.h

Issue 136903003: cast: Wire upp logging to be sent over RTCP between receiver and sender. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Merge TOT 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 unified diff | Download patch
« no previous file with comments | « media/cast/logging/logging_defines.cc ('k') | media/cast/logging/logging_impl.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 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 #ifndef MEDIA_CAST_LOGGING_LOGGING_IMPL_H_ 4 #ifndef MEDIA_CAST_LOGGING_LOGGING_IMPL_H_
5 #define MEDIA_CAST_LOGGING_LOGGING_IMPL_H_ 5 #define MEDIA_CAST_LOGGING_LOGGING_IMPL_H_
6 6
7 // Generic class that handles event logging for the cast library. 7 // Generic class that handles event logging for the cast library.
8 // Logging has three possible optional forms: 8 // Logging has three possible optional forms:
9 // 1. Raw data and stats accessible by the application. 9 // 1. Raw data and stats accessible by the application.
10 // 2. UMA stats. 10 // 2. UMA stats.
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 size_t size); 58 size_t size);
59 59
60 void InsertGenericEvent(const base::TimeTicks& time_of_event, 60 void InsertGenericEvent(const base::TimeTicks& time_of_event,
61 CastLoggingEvent event, 61 CastLoggingEvent event,
62 int value); 62 int value);
63 63
64 // Get raw data. 64 // Get raw data.
65 FrameRawMap GetFrameRawData(); 65 FrameRawMap GetFrameRawData();
66 PacketRawMap GetPacketRawData(); 66 PacketRawMap GetPacketRawData();
67 GenericRawMap GetGenericRawData(); 67 GenericRawMap GetGenericRawData();
68 AudioRtcpRawMap GetAudioRtcpRawData();
69 VideoRtcpRawMap GetVideoRtcpRawData();
70
68 // Get stats only (computed when called). Triggers UMA stats when enabled. 71 // Get stats only (computed when called). Triggers UMA stats when enabled.
69 const FrameStatsMap* GetFrameStatsData(const base::TimeTicks& now); 72 const FrameStatsMap* GetFrameStatsData(const base::TimeTicks& now);
70 const PacketStatsMap* GetPacketStatsData(const base::TimeTicks& now); 73 const PacketStatsMap* GetPacketStatsData(const base::TimeTicks& now);
71 const GenericStatsMap* GetGenericStatsData(); 74 const GenericStatsMap* GetGenericStatsData();
72 75
73 // Reset raw logging data. 76 // Reset raw logging data.
74 void ResetRaw(); 77 void ResetRaw();
75 // Reset stats logging data. 78 // Reset stats logging data.
76 void ResetStats(); 79 void ResetStats();
77 80
78 private: 81 private:
79 void InsertGenericUmaEvent(CastLoggingEvent event, int value); 82 void InsertGenericUmaEvent(CastLoggingEvent event, int value);
80 scoped_refptr<base::TaskRunner> main_thread_proxy_; 83 scoped_refptr<base::TaskRunner> main_thread_proxy_;
81 const CastLoggingConfig config_; 84 const CastLoggingConfig config_;
82 LoggingRaw raw_; 85 LoggingRaw raw_;
83 LoggingStats stats_; 86 LoggingStats stats_;
84 87
85 DISALLOW_COPY_AND_ASSIGN(LoggingImpl); 88 DISALLOW_COPY_AND_ASSIGN(LoggingImpl);
86 }; 89 };
87 90
88 } // namespace cast 91 } // namespace cast
89 } // namespace media 92 } // namespace media
90 93
91 #endif // MEDIA_CAST_LOGGING_LOGGING_IMPL_H_ 94 #endif // MEDIA_CAST_LOGGING_LOGGING_IMPL_H_
OLDNEW
« no previous file with comments | « media/cast/logging/logging_defines.cc ('k') | media/cast/logging/logging_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698