| OLD | NEW | 
|    1 // Copyright 2016 The Chromium Authors. All rights reserved. |    1 // Copyright 2016 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 #include "remoting/protocol/frame_stats.h" |    5 #include "remoting/protocol/frame_stats.h" | 
|    6  |    6  | 
|    7 #include "remoting/proto/video.pb.h" |    7 #include "remoting/proto/video.pb.h" | 
|    8 #include "remoting/proto/video_stats.pb.h" |    8 #include "remoting/proto/video_stats.pb.h" | 
|    9  |    9  | 
|   10 namespace remoting { |   10 namespace remoting { | 
| (...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  126   } |  126   } | 
|  127   if (send_pending_delay != base::TimeDelta::Max()) { |  127   if (send_pending_delay != base::TimeDelta::Max()) { | 
|  128     message_out->set_send_pending_time_ms(send_pending_delay.InMilliseconds()); |  128     message_out->set_send_pending_time_ms(send_pending_delay.InMilliseconds()); | 
|  129   } |  129   } | 
|  130   if (rtt_estimate != base::TimeDelta::Max()) { |  130   if (rtt_estimate != base::TimeDelta::Max()) { | 
|  131     message_out->set_rtt_estimate_ms(rtt_estimate.InMilliseconds()); |  131     message_out->set_rtt_estimate_ms(rtt_estimate.InMilliseconds()); | 
|  132   } |  132   } | 
|  133   if (bandwidth_estimate_kbps >= 0) { |  133   if (bandwidth_estimate_kbps >= 0) { | 
|  134     message_out->set_bandwidth_estimate_kbps(bandwidth_estimate_kbps); |  134     message_out->set_bandwidth_estimate_kbps(bandwidth_estimate_kbps); | 
|  135   } |  135   } | 
 |  136   if (capturer_id != webrtc::DesktopCapturerId::kUnknown) { | 
 |  137     message_out->set_capturer_id(capturer_id); | 
 |  138   } | 
|  136 } |  139 } | 
|  137  |  140  | 
|  138 FrameStats::FrameStats() = default; |  141 FrameStats::FrameStats() = default; | 
|  139 FrameStats::FrameStats(const FrameStats&) = default; |  142 FrameStats::FrameStats(const FrameStats&) = default; | 
|  140 FrameStats::~FrameStats() = default; |  143 FrameStats::~FrameStats() = default; | 
|  141  |  144  | 
|  142 }  // namespace protocol |  145 }  // namespace protocol | 
|  143 }  // namespace remoting |  146 }  // namespace remoting | 
| OLD | NEW |