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

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

Issue 10440119: Introduce a delegate to avoid hardcoding "chrome-extension" in net/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address review nit and merge to LKGR for commit. Created 8 years, 6 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 #pragma once 7 #pragma once
8 8
9 #include <stdlib.h> 9 #include <stdlib.h>
10 10
(...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after
237 const net::AuthChallengeInfo& auth_info, 237 const net::AuthChallengeInfo& auth_info,
238 const AuthCallback& callback, 238 const AuthCallback& callback,
239 net::AuthCredentials* credentials) OVERRIDE; 239 net::AuthCredentials* credentials) OVERRIDE;
240 virtual bool OnCanGetCookies(const net::URLRequest& request, 240 virtual bool OnCanGetCookies(const net::URLRequest& request,
241 const net::CookieList& cookie_list) OVERRIDE; 241 const net::CookieList& cookie_list) OVERRIDE;
242 virtual bool OnCanSetCookie(const net::URLRequest& request, 242 virtual bool OnCanSetCookie(const net::URLRequest& request,
243 const std::string& cookie_line, 243 const std::string& cookie_line,
244 net::CookieOptions* options) OVERRIDE; 244 net::CookieOptions* options) OVERRIDE;
245 virtual bool OnCanAccessFile(const net::URLRequest& request, 245 virtual bool OnCanAccessFile(const net::URLRequest& request,
246 const FilePath& path) const OVERRIDE; 246 const FilePath& path) const OVERRIDE;
247 virtual bool OnCanThrottleRequest(
248 const net::URLRequest& request) const OVERRIDE;
247 249
248 void InitRequestStatesIfNew(int request_id); 250 void InitRequestStatesIfNew(int request_id);
249 251
250 int last_error_; 252 int last_error_;
251 int error_count_; 253 int error_count_;
252 int created_requests_; 254 int created_requests_;
253 int destroyed_requests_; 255 int destroyed_requests_;
254 int completed_requests_; 256 int completed_requests_;
255 int cookie_options_bit_mask_; 257 int cookie_options_bit_mask_;
256 int blocked_get_cookies_count_; 258 int blocked_get_cookies_count_;
(...skipping 30 matching lines...) Expand all
287 289
288 private: 290 private:
289 static std::string value_; 291 static std::string value_;
290 const std::string old_value_; 292 const std::string old_value_;
291 const std::string new_value_; 293 const std::string new_value_;
292 294
293 DISALLOW_COPY_AND_ASSIGN(ScopedCustomUrlRequestTestHttpHost); 295 DISALLOW_COPY_AND_ASSIGN(ScopedCustomUrlRequestTestHttpHost);
294 }; 296 };
295 297
296 #endif // NET_URL_REQUEST_URL_REQUEST_TEST_UTIL_H_ 298 #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