OLD | NEW |
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 11 matching lines...) Expand all Loading... |
22 public: | 22 public: |
23 LoggingImpl(); | 23 LoggingImpl(); |
24 ~LoggingImpl(); | 24 ~LoggingImpl(); |
25 | 25 |
26 // Note: All methods below should be called from the same thread. | 26 // Note: All methods below should be called from the same thread. |
27 | 27 |
28 void InsertFrameEvent(const base::TimeTicks& time_of_event, | 28 void InsertFrameEvent(const base::TimeTicks& time_of_event, |
29 CastLoggingEvent event, uint32 rtp_timestamp, | 29 CastLoggingEvent event, uint32 rtp_timestamp, |
30 uint32 frame_id); | 30 uint32 frame_id); |
31 | 31 |
32 void InsertFrameEventWithSize(const base::TimeTicks& time_of_event, | 32 void InsertEncodedFrameEvent(const base::TimeTicks& time_of_event, |
33 CastLoggingEvent event, uint32 rtp_timestamp, | 33 CastLoggingEvent event, uint32 rtp_timestamp, |
34 uint32 frame_id, int frame_size); | 34 uint32 frame_id, int frame_size, bool key_frame); |
35 | 35 |
36 void InsertFrameEventWithDelay(const base::TimeTicks& time_of_event, | 36 void InsertFrameEventWithDelay(const base::TimeTicks& time_of_event, |
37 CastLoggingEvent event, uint32 rtp_timestamp, | 37 CastLoggingEvent event, uint32 rtp_timestamp, |
38 uint32 frame_id, base::TimeDelta delay); | 38 uint32 frame_id, base::TimeDelta delay); |
39 | 39 |
40 void InsertSinglePacketEvent(const base::TimeTicks& time_of_event, | 40 void InsertSinglePacketEvent(const base::TimeTicks& time_of_event, |
41 CastLoggingEvent event, | 41 CastLoggingEvent event, |
42 const Packet& packet); | 42 const Packet& packet); |
43 | 43 |
44 void InsertPacketListEvent(const base::TimeTicks& time_of_event, | 44 void InsertPacketListEvent(const base::TimeTicks& time_of_event, |
(...skipping 18 matching lines...) Expand all Loading... |
63 base::ThreadChecker thread_checker_; | 63 base::ThreadChecker thread_checker_; |
64 LoggingRaw raw_; | 64 LoggingRaw raw_; |
65 | 65 |
66 DISALLOW_COPY_AND_ASSIGN(LoggingImpl); | 66 DISALLOW_COPY_AND_ASSIGN(LoggingImpl); |
67 }; | 67 }; |
68 | 68 |
69 } // namespace cast | 69 } // namespace cast |
70 } // namespace media | 70 } // namespace media |
71 | 71 |
72 #endif // MEDIA_CAST_LOGGING_LOGGING_IMPL_H_ | 72 #endif // MEDIA_CAST_LOGGING_LOGGING_IMPL_H_ |
OLD | NEW |