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

Side by Side Diff: chrome/browser/net/network_stats.cc

Issue 8437002: Move BrowserThread to content namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: A few updates. Created 9 years, 1 month 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 | « chrome/browser/net/net_pref_observer.cc ('k') | chrome/browser/net/preconnect.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 "chrome/browser/net/network_stats.h" 5 #include "chrome/browser/net/network_stats.h"
6 6
7 #include "base/callback_old.h" 7 #include "base/callback_old.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "base/message_loop.h" 9 #include "base/message_loop.h"
10 #include "base/metrics/field_trial.h" 10 #include "base/metrics/field_trial.h"
11 #include "base/metrics/histogram.h" 11 #include "base/metrics/histogram.h"
12 #include "base/stringprintf.h" 12 #include "base/stringprintf.h"
13 #include "base/task.h" 13 #include "base/task.h"
14 #include "base/threading/platform_thread.h" 14 #include "base/threading/platform_thread.h"
15 #include "base/time.h" 15 #include "base/time.h"
16 #include "base/tuple.h" 16 #include "base/tuple.h"
17 #include "content/public/browser/browser_thread.h" 17 #include "content/public/browser/browser_thread.h"
18 #include "net/base/net_errors.h" 18 #include "net/base/net_errors.h"
19 #include "net/base/net_util.h" 19 #include "net/base/net_util.h"
20 #include "net/base/network_change_notifier.h" 20 #include "net/base/network_change_notifier.h"
21 #include "net/base/sys_addrinfo.h" 21 #include "net/base/sys_addrinfo.h"
22 #include "net/base/test_completion_callback.h" 22 #include "net/base/test_completion_callback.h"
23 #include "net/socket/tcp_client_socket.h" 23 #include "net/socket/tcp_client_socket.h"
24 #include "net/udp/udp_client_socket.h" 24 #include "net/udp/udp_client_socket.h"
25 #include "net/udp/udp_server_socket.h" 25 #include "net/udp/udp_server_socket.h"
26 26
27 using content::BrowserThread;
28
27 namespace chrome_browser_net { 29 namespace chrome_browser_net {
28 30
29 // This specifies the number of bytes to be sent to the TCP/UDP servers as part 31 // This specifies the number of bytes to be sent to the TCP/UDP servers as part
30 // of small packet size test. 32 // of small packet size test.
31 static const uint32 kSmallTestBytesToSend = 100; 33 static const uint32 kSmallTestBytesToSend = 100;
32 34
33 // This specifies the number of bytes to be sent to the TCP/UDP servers as part 35 // This specifies the number of bytes to be sent to the TCP/UDP servers as part
34 // of large packet size test. 36 // of large packet size test.
35 static const uint32 kLargeTestBytesToSend = 1200; 37 static const uint32 kLargeTestBytesToSend = 1200;
36 38
(...skipping 559 matching lines...) Expand 10 before | Expand all | Expand 10 after
596 TCPStatsClient* small_tcp_client = new TCPStatsClient(); 598 TCPStatsClient* small_tcp_client = new TCPStatsClient();
597 small_tcp_client->Start( 599 small_tcp_client->Start(
598 host_resolver, tcp_server_address, kSmallTestBytesToSend, NULL); 600 host_resolver, tcp_server_address, kSmallTestBytesToSend, NULL);
599 601
600 TCPStatsClient* large_tcp_client = new TCPStatsClient(); 602 TCPStatsClient* large_tcp_client = new TCPStatsClient();
601 large_tcp_client->Start( 603 large_tcp_client->Start(
602 host_resolver, tcp_server_address, kLargeTestBytesToSend, NULL); 604 host_resolver, tcp_server_address, kLargeTestBytesToSend, NULL);
603 } 605 }
604 606
605 } // namespace chrome_browser_net 607 } // namespace chrome_browser_net
OLDNEW
« no previous file with comments | « chrome/browser/net/net_pref_observer.cc ('k') | chrome/browser/net/preconnect.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698