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

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

Issue 10736066: Adding histograms showing fraction of page load times (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 5 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
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 #pragma once 7 #pragma once
8 8
9 #include <stdlib.h> 9 #include <stdlib.h>
10 10
(...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after
240 virtual bool OnCanSetCookie(const net::URLRequest& request, 240 virtual bool OnCanSetCookie(const net::URLRequest& request,
241 const std::string& cookie_line, 241 const std::string& cookie_line,
242 net::CookieOptions* options) OVERRIDE; 242 net::CookieOptions* options) OVERRIDE;
243 virtual bool OnCanAccessFile(const net::URLRequest& request, 243 virtual bool OnCanAccessFile(const net::URLRequest& request,
244 const FilePath& path) const OVERRIDE; 244 const FilePath& path) const OVERRIDE;
245 virtual bool OnCanThrottleRequest( 245 virtual bool OnCanThrottleRequest(
246 const net::URLRequest& request) const OVERRIDE; 246 const net::URLRequest& request) const OVERRIDE;
247 virtual int OnBeforeSocketStreamConnect( 247 virtual int OnBeforeSocketStreamConnect(
248 net::SocketStream* stream, 248 net::SocketStream* stream,
249 const net::CompletionCallback& callback) OVERRIDE; 249 const net::CompletionCallback& callback) OVERRIDE;
250 virtual void OnCacheWaitStateChange(const net::URLRequest& request,
251 CacheWaitState state) OVERRIDE;
250 252
251 void InitRequestStatesIfNew(int request_id); 253 void InitRequestStatesIfNew(int request_id);
252 254
253 int last_error_; 255 int last_error_;
254 int error_count_; 256 int error_count_;
255 int created_requests_; 257 int created_requests_;
256 int destroyed_requests_; 258 int destroyed_requests_;
257 int completed_requests_; 259 int completed_requests_;
258 int cookie_options_bit_mask_; 260 int cookie_options_bit_mask_;
259 int blocked_get_cookies_count_; 261 int blocked_get_cookies_count_;
(...skipping 30 matching lines...) Expand all
290 292
291 private: 293 private:
292 static std::string value_; 294 static std::string value_;
293 const std::string old_value_; 295 const std::string old_value_;
294 const std::string new_value_; 296 const std::string new_value_;
295 297
296 DISALLOW_COPY_AND_ASSIGN(ScopedCustomUrlRequestTestHttpHost); 298 DISALLOW_COPY_AND_ASSIGN(ScopedCustomUrlRequestTestHttpHost);
297 }; 299 };
298 300
299 #endif // NET_URL_REQUEST_URL_REQUEST_TEST_UTIL_H_ 301 #endif // NET_URL_REQUEST_URL_REQUEST_TEST_UTIL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698