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

Side by Side Diff: net/url_request/url_request_test_util.h

Issue 10834313: Add histograms for network activity, and total/cumulative (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 4 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 | « net/url_request/url_request_http_job.cc ('k') | net/url_request/url_request_test_util.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) 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 NET_URL_REQUEST_URL_REQUEST_TEST_UTIL_H_ 5 #ifndef NET_URL_REQUEST_URL_REQUEST_TEST_UTIL_H_
6 #define NET_URL_REQUEST_URL_REQUEST_TEST_UTIL_H_ 6 #define NET_URL_REQUEST_URL_REQUEST_TEST_UTIL_H_
7 7
8 #include <stdlib.h> 8 #include <stdlib.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after
238 virtual bool OnCanSetCookie(const net::URLRequest& request, 238 virtual bool OnCanSetCookie(const net::URLRequest& request,
239 const std::string& cookie_line, 239 const std::string& cookie_line,
240 net::CookieOptions* options) OVERRIDE; 240 net::CookieOptions* options) OVERRIDE;
241 virtual bool OnCanAccessFile(const net::URLRequest& request, 241 virtual bool OnCanAccessFile(const net::URLRequest& request,
242 const FilePath& path) const OVERRIDE; 242 const FilePath& path) const OVERRIDE;
243 virtual bool OnCanThrottleRequest( 243 virtual bool OnCanThrottleRequest(
244 const net::URLRequest& request) const OVERRIDE; 244 const net::URLRequest& request) const OVERRIDE;
245 virtual int OnBeforeSocketStreamConnect( 245 virtual int OnBeforeSocketStreamConnect(
246 net::SocketStream* stream, 246 net::SocketStream* stream,
247 const net::CompletionCallback& callback) OVERRIDE; 247 const net::CompletionCallback& callback) OVERRIDE;
248 virtual void OnCacheWaitStateChange(const net::URLRequest& request, 248 virtual void OnRequestWaitStateChange(const net::URLRequest& request,
249 CacheWaitState state) OVERRIDE; 249 RequestWaitState state) OVERRIDE;
250 250
251 void InitRequestStatesIfNew(int request_id); 251 void InitRequestStatesIfNew(int request_id);
252 252
253 int last_error_; 253 int last_error_;
254 int error_count_; 254 int error_count_;
255 int created_requests_; 255 int created_requests_;
256 int destroyed_requests_; 256 int destroyed_requests_;
257 int completed_requests_; 257 int completed_requests_;
258 int cookie_options_bit_mask_; 258 int cookie_options_bit_mask_;
259 int blocked_get_cookies_count_; 259 int blocked_get_cookies_count_;
(...skipping 30 matching lines...) Expand all
290 290
291 private: 291 private:
292 static std::string value_; 292 static std::string value_;
293 const std::string old_value_; 293 const std::string old_value_;
294 const std::string new_value_; 294 const std::string new_value_;
295 295
296 DISALLOW_COPY_AND_ASSIGN(ScopedCustomUrlRequestTestHttpHost); 296 DISALLOW_COPY_AND_ASSIGN(ScopedCustomUrlRequestTestHttpHost);
297 }; 297 };
298 298
299 #endif // NET_URL_REQUEST_URL_REQUEST_TEST_UTIL_H_ 299 #endif // NET_URL_REQUEST_URL_REQUEST_TEST_UTIL_H_
OLDNEW
« no previous file with comments | « net/url_request/url_request_http_job.cc ('k') | net/url_request/url_request_test_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698