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

Side by Side Diff: remoting/client/chromoting_stats.cc

Issue 9271061: Cleanup: Remove static storage for variables in an unnamed namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Style change. Created 8 years, 11 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 | Annotate | Revision Log
« no previous file with comments | « printing/printing_context_gtk.cc ('k') | remoting/protocol/jingle_messages.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 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 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/client/chromoting_stats.h" 5 #include "remoting/client/chromoting_stats.h"
6 6
7 namespace { 7 namespace {
8 8
9 // The default window of bandwidth and frame rate in seconds. 9 // The default window of bandwidth and frame rate in seconds.
10 static const int kTimeWindow = 3; 10 const int kTimeWindow = 3;
11 11
12 // We take the last 10 latency numbers and report the average. 12 // We take the last 10 latency numbers and report the average.
13 static const int kLatencyWindow = 10; 13 const int kLatencyWindow = 10;
14 14
15 } // namespace 15 } // namespace
16 16
17 namespace remoting { 17 namespace remoting {
18 18
19 ChromotingStats::ChromotingStats() 19 ChromotingStats::ChromotingStats()
20 : video_bandwidth_(base::TimeDelta::FromSeconds(kTimeWindow)), 20 : video_bandwidth_(base::TimeDelta::FromSeconds(kTimeWindow)),
21 video_frame_rate_(base::TimeDelta::FromSeconds(kTimeWindow)), 21 video_frame_rate_(base::TimeDelta::FromSeconds(kTimeWindow)),
22 video_capture_ms_(kLatencyWindow), 22 video_capture_ms_(kLatencyWindow),
23 video_encode_ms_(kLatencyWindow), 23 video_encode_ms_(kLatencyWindow),
24 video_decode_ms_(kLatencyWindow), 24 video_decode_ms_(kLatencyWindow),
25 video_paint_ms_(kLatencyWindow), 25 video_paint_ms_(kLatencyWindow),
26 round_trip_ms_(kLatencyWindow) { 26 round_trip_ms_(kLatencyWindow) {
27 } 27 }
28 28
29 ChromotingStats::~ChromotingStats() { 29 ChromotingStats::~ChromotingStats() {
30 } 30 }
31 31
32 } // namespace remoting 32 } // namespace remoting
OLDNEW
« no previous file with comments | « printing/printing_context_gtk.cc ('k') | remoting/protocol/jingle_messages.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698