| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 CHROME_BROWSER_NET_NETWORK_STATS_H_ | 5 #ifndef CHROME_BROWSER_NET_NETWORK_STATS_H_ |
| 6 #define CHROME_BROWSER_NET_NETWORK_STATS_H_ | 6 #define CHROME_BROWSER_NET_NETWORK_STATS_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| 11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
| 12 #include "base/memory/ref_counted.h" | 12 #include "base/memory/ref_counted.h" |
| 13 #include "base/memory/scoped_ptr.h" | 13 #include "base/memory/scoped_ptr.h" |
| 14 #include "base/string_util.h" | 14 #include "base/string_util.h" |
| 15 #include "base/time.h" | 15 #include "base/time.h" |
| 16 #include "chrome/browser/io_thread.h" | 16 #include "chrome/browser/io_thread.h" |
| 17 #include "net/base/address_list.h" | 17 #include "net/base/address_list.h" |
| 18 #include "net/base/completion_callback.h" | 18 #include "net/base/completion_callback.h" |
| 19 #include "net/base/host_port_pair.h" | 19 #include "net/base/host_port_pair.h" |
| 20 #include "net/base/host_resolver.h" | |
| 21 #include "net/base/io_buffer.h" | 20 #include "net/base/io_buffer.h" |
| 22 #include "net/base/ip_endpoint.h" | 21 #include "net/base/ip_endpoint.h" |
| 23 #include "net/base/test_data_stream.h" | 22 #include "net/base/test_data_stream.h" |
| 23 #include "net/dns/host_resolver.h" |
| 24 #include "net/proxy/proxy_info.h" | 24 #include "net/proxy/proxy_info.h" |
| 25 #include "net/socket/socket.h" | 25 #include "net/socket/socket.h" |
| 26 | 26 |
| 27 namespace chrome_browser_net { | 27 namespace chrome_browser_net { |
| 28 | 28 |
| 29 // This class is used for live experiment of network connectivity (for UDP) | 29 // This class is used for live experiment of network connectivity (for UDP) |
| 30 // metrics. A small percentage of users participate in this experiment. All | 30 // metrics. A small percentage of users participate in this experiment. All |
| 31 // users (who are in the experiment) must have enabled "UMA upload". | 31 // users (who are in the experiment) must have enabled "UMA upload". |
| 32 // | 32 // |
| 33 // This class collects the following stats from users who have opted in. | 33 // This class collects the following stats from users who have opted in. |
| (...skipping 385 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 419 // "21 packets bursty test with 500 bytes packet", and "21 packets bursty test | 419 // "21 packets bursty test with 500 bytes packet", and "21 packets bursty test |
| 420 // with 100 bytes packet" tests. | 420 // with 100 bytes packet" tests. |
| 421 void StartNetworkStatsTest(net::HostResolver* host_resolver, | 421 void StartNetworkStatsTest(net::HostResolver* host_resolver, |
| 422 const net::HostPortPair& server_address, | 422 const net::HostPortPair& server_address, |
| 423 NetworkStats::HistogramPortSelector histogram_port, | 423 NetworkStats::HistogramPortSelector histogram_port, |
| 424 bool has_proxy_server); | 424 bool has_proxy_server); |
| 425 | 425 |
| 426 } // namespace chrome_browser_net | 426 } // namespace chrome_browser_net |
| 427 | 427 |
| 428 #endif // CHROME_BROWSER_NET_NETWORK_STATS_H_ | 428 #endif // CHROME_BROWSER_NET_NETWORK_STATS_H_ |
| OLD | NEW |