ExtensionInstallDialogView: fix scrolling behavior on Views (Win,Linux)
[chromium-blink-merge.git] / remoting / client / chromoting_stats.cc
blob71b7199ff5adca1f9222636bb5cc5fe79efedea8
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "remoting/client/chromoting_stats.h"
7 namespace {
9 // The default window of bandwidth and frame rate in seconds.
10 const int kTimeWindow = 3;
12 // We take the last 10 latency numbers and report the average.
13 const int kLatencyWindow = 10;
15 } // namespace
17 namespace remoting {
19 ChromotingStats::ChromotingStats()
20 : video_bandwidth_(base::TimeDelta::FromSeconds(kTimeWindow)),
21 video_frame_rate_(base::TimeDelta::FromSeconds(kTimeWindow)),
22 video_capture_ms_(kLatencyWindow),
23 video_encode_ms_(kLatencyWindow),
24 video_decode_ms_(kLatencyWindow),
25 video_paint_ms_(kLatencyWindow),
26 round_trip_ms_(kLatencyWindow) {
29 ChromotingStats::~ChromotingStats() {
32 } // namespace remoting