| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 | 4 |
| 5 #ifndef MEDIA_CAST_SENDER_VIDEO_SENDER_H_ | 5 #ifndef MEDIA_CAST_SENDER_VIDEO_SENDER_H_ |
| 6 #define MEDIA_CAST_SENDER_VIDEO_SENDER_H_ | 6 #define MEDIA_CAST_SENDER_VIDEO_SENDER_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "base/callback.h" | 10 #include "base/callback.h" |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 // OnEncodedVideoFrame(). See header file comments for SenderEncodedFrame for | 103 // OnEncodedVideoFrame(). See header file comments for SenderEncodedFrame for |
| 104 // an explanation of these values. | 104 // an explanation of these values. |
| 105 double last_reported_encoder_utilization_; | 105 double last_reported_encoder_utilization_; |
| 106 double last_reported_lossy_utilization_; | 106 double last_reported_lossy_utilization_; |
| 107 | 107 |
| 108 // This tracks the time when the request was sent to encoder to encode a key | 108 // This tracks the time when the request was sent to encoder to encode a key |
| 109 // frame on receiving a Pli message. It is used to limit the sender not | 109 // frame on receiving a Pli message. It is used to limit the sender not |
| 110 // to duplicately respond to multiple Pli messages in a short period. | 110 // to duplicately respond to multiple Pli messages in a short period. |
| 111 base::TimeTicks last_time_attempted_to_resolve_pli_; | 111 base::TimeTicks last_time_attempted_to_resolve_pli_; |
| 112 | 112 |
| 113 // NOTE: Weak pointers must be invalidated before all other member variables. | |
| 114 base::WeakPtrFactory<VideoSender> weak_factory_; | |
| 115 | |
| 116 DISALLOW_COPY_AND_ASSIGN(VideoSender); | 113 DISALLOW_COPY_AND_ASSIGN(VideoSender); |
| 117 }; | 114 }; |
| 118 | 115 |
| 119 } // namespace cast | 116 } // namespace cast |
| 120 } // namespace media | 117 } // namespace media |
| 121 | 118 |
| 122 #endif // MEDIA_CAST_SENDER_VIDEO_SENDER_H_ | 119 #endif // MEDIA_CAST_SENDER_VIDEO_SENDER_H_ |
| OLD | NEW |