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

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

Issue 8549004: base::Bind: Convert HostResolver::Resolve. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase. 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 | « no previous file | chrome/browser/net/network_stats.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 #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
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 // The encoded message read from the server. 169 // The encoded message read from the server.
170 std::string encoded_message_; 170 std::string encoded_message_;
171 171
172 // |stream_| is used to generate data to be sent to the server and it is also 172 // |stream_| is used to generate data to be sent to the server and it is also
173 // used to verify the data received from the server. 173 // used to verify the data received from the server.
174 net::TestDataStream stream_; 174 net::TestDataStream stream_;
175 175
176 // HostResolver fills out the |addresses_| after host resolution is completed. 176 // HostResolver fills out the |addresses_| after host resolution is completed.
177 net::AddressList addresses_; 177 net::AddressList addresses_;
178 178
179 // Callback to call when host resolution is completed.
180 net::OldCompletionCallbackImpl<NetworkStats> resolve_callback_;
181
182 // Callback to call when data is read from the server. 179 // Callback to call when data is read from the server.
183 net::OldCompletionCallbackImpl<NetworkStats> read_callback_; 180 net::OldCompletionCallbackImpl<NetworkStats> read_callback_;
184 181
185 // Callback to call when data is sent to the server. 182 // Callback to call when data is sent to the server.
186 net::OldCompletionCallbackImpl<NetworkStats> write_callback_; 183 net::OldCompletionCallbackImpl<NetworkStats> write_callback_;
187 184
188 // Callback to call when echo protocol is successefully finished or whenever 185 // Callback to call when echo protocol is successefully finished or whenever
189 // there is an error (this allows unittests to wait until echo protocol's 186 // there is an error (this allows unittests to wait until echo protocol's
190 // round trip is finished). 187 // round trip is finished).
191 net::OldCompletionCallback* finished_callback_; 188 net::OldCompletionCallback* finished_callback_;
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
258 // This collects the network connectivity stats for UDP and TCP for small 255 // This collects the network connectivity stats for UDP and TCP for small
259 // percentage of users who are participating in the experiment. All users must 256 // percentage of users who are participating in the experiment. All users must
260 // have enabled "UMA upload". This method gets called only if UMA upload to the 257 // have enabled "UMA upload". This method gets called only if UMA upload to the
261 // server has succeeded. 258 // server has succeeded.
262 void CollectNetworkStats(const std::string& network_stats_server_url, 259 void CollectNetworkStats(const std::string& network_stats_server_url,
263 IOThread* io_thread); 260 IOThread* io_thread);
264 261
265 } // namespace chrome_browser_net 262 } // namespace chrome_browser_net
266 263
267 #endif // CHROME_BROWSER_NET_NETWORK_STATS_H_ 264 #endif // CHROME_BROWSER_NET_NETWORK_STATS_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/net/network_stats.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698