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

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

Issue 184853003: Cast: Add GetStats() extensions API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: static cast to int Created 6 years, 9 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
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. Tracing of raw events. 10 // 2. Tracing of raw events.
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 CastLoggingEvent event, int value); 51 CastLoggingEvent event, int value);
52 52
53 53
54 // Delegates to |LoggingRaw::AddRawEventSubscriber()|. 54 // Delegates to |LoggingRaw::AddRawEventSubscriber()|.
55 void AddRawEventSubscriber(RawEventSubscriber* subscriber); 55 void AddRawEventSubscriber(RawEventSubscriber* subscriber);
56 56
57 // Delegates to |LoggingRaw::RemoveRawEventSubscriber()|. 57 // Delegates to |LoggingRaw::RemoveRawEventSubscriber()|.
58 void RemoveRawEventSubscriber(RawEventSubscriber* subscriber); 58 void RemoveRawEventSubscriber(RawEventSubscriber* subscriber);
59 59
60 // Get stats only. 60 // Get stats only.
61 FrameStatsMap GetFrameStatsData() const; 61 FrameStatsMap GetFrameStatsData(EventMediaType media_type) const;
62 PacketStatsMap GetPacketStatsData() const; 62 PacketStatsMap GetPacketStatsData(EventMediaType media_type) const;
63 GenericStatsMap GetGenericStatsData() const; 63 GenericStatsMap GetGenericStatsData() const;
64 64
65 // Reset stats logging data. 65 // Reset stats logging data.
66 void ResetStats(); 66 void ResetStats();
67 67
68 private: 68 private:
69 scoped_refptr<base::SingleThreadTaskRunner> main_thread_proxy_; 69 scoped_refptr<base::SingleThreadTaskRunner> main_thread_proxy_;
70 const CastLoggingConfig config_; 70 const CastLoggingConfig config_;
71 LoggingRaw raw_; 71 LoggingRaw raw_;
72 LoggingStats stats_; 72 LoggingStats stats_;
73 73
74 DISALLOW_COPY_AND_ASSIGN(LoggingImpl); 74 DISALLOW_COPY_AND_ASSIGN(LoggingImpl);
75 }; 75 };
76 76
77 } // namespace cast 77 } // namespace cast
78 } // namespace media 78 } // namespace media
79 79
80 #endif // MEDIA_CAST_LOGGING_LOGGING_IMPL_H_ 80 #endif // MEDIA_CAST_LOGGING_LOGGING_IMPL_H_
OLDNEW
« no previous file with comments | « chrome/test/data/extensions/api_test/cast_streaming/stats.js ('k') | media/cast/logging/logging_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698