OLD | NEW |
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 #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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
12 #include "base/bind.h" | |
13 #include "base/memory/ref_counted.h" | 12 #include "base/memory/ref_counted.h" |
14 #include "base/memory/scoped_ptr.h" | 13 #include "base/memory/scoped_ptr.h" |
15 #include "base/string_util.h" | 14 #include "base/string_util.h" |
16 #include "base/time.h" | 15 #include "base/time.h" |
17 #include "chrome/browser/io_thread.h" | 16 #include "chrome/browser/io_thread.h" |
18 #include "net/base/address_list.h" | 17 #include "net/base/address_list.h" |
19 #include "net/base/completion_callback.h" | 18 #include "net/base/completion_callback.h" |
20 #include "net/base/host_port_pair.h" | 19 #include "net/base/host_port_pair.h" |
21 #include "net/base/host_resolver.h" | 20 #include "net/base/host_resolver.h" |
22 #include "net/base/io_buffer.h" | 21 #include "net/base/io_buffer.h" |
(...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
247 // This collects the network connectivity stats for UDP and TCP for small | 246 // This collects the network connectivity stats for UDP and TCP for small |
248 // percentage of users who are participating in the experiment. All users must | 247 // percentage of users who are participating in the experiment. All users must |
249 // have enabled "UMA upload". This method gets called only if UMA upload to the | 248 // have enabled "UMA upload". This method gets called only if UMA upload to the |
250 // server has succeeded. | 249 // server has succeeded. |
251 void CollectNetworkStats(const std::string& network_stats_server_url, | 250 void CollectNetworkStats(const std::string& network_stats_server_url, |
252 IOThread* io_thread); | 251 IOThread* io_thread); |
253 | 252 |
254 } // namespace chrome_browser_net | 253 } // namespace chrome_browser_net |
255 | 254 |
256 #endif // CHROME_BROWSER_NET_NETWORK_STATS_H_ | 255 #endif // CHROME_BROWSER_NET_NETWORK_STATS_H_ |
OLD | NEW |