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

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

Issue 754433003: Update from https://crrev.com/305340 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 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
« no previous file with comments | « net/url_request/url_request_simple_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 307 matching lines...) Expand 10 before | Expand all | Expand 10 after
318 const AuthCallback& callback, 318 const AuthCallback& callback,
319 AuthCredentials* credentials) override; 319 AuthCredentials* credentials) override;
320 bool OnCanGetCookies(const URLRequest& request, 320 bool OnCanGetCookies(const URLRequest& request,
321 const CookieList& cookie_list) override; 321 const CookieList& cookie_list) override;
322 bool OnCanSetCookie(const URLRequest& request, 322 bool OnCanSetCookie(const URLRequest& request,
323 const std::string& cookie_line, 323 const std::string& cookie_line,
324 CookieOptions* options) override; 324 CookieOptions* options) override;
325 bool OnCanAccessFile(const URLRequest& request, 325 bool OnCanAccessFile(const URLRequest& request,
326 const base::FilePath& path) const override; 326 const base::FilePath& path) const override;
327 bool OnCanThrottleRequest(const URLRequest& request) const override; 327 bool OnCanThrottleRequest(const URLRequest& request) const override;
328 int OnBeforeSocketStreamConnect(SocketStream* stream,
329 const CompletionCallback& callback) override;
330 bool OnCancelURLRequestWithPolicyViolatingReferrerHeader( 328 bool OnCancelURLRequestWithPolicyViolatingReferrerHeader(
331 const URLRequest& request, 329 const URLRequest& request,
332 const GURL& target_url, 330 const GURL& target_url,
333 const GURL& referrer_url) const override; 331 const GURL& referrer_url) const override;
334 332
335 void InitRequestStatesIfNew(int request_id); 333 void InitRequestStatesIfNew(int request_id);
336 334
337 GURL redirect_on_headers_received_url_; 335 GURL redirect_on_headers_received_url_;
338 // URL marked as safe for redirection at the onHeadersReceived stage. 336 // URL marked as safe for redirection at the onHeadersReceived stage.
339 GURL allowed_unsafe_redirect_url_; 337 GURL allowed_unsafe_redirect_url_;
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
413 NetworkDelegate* network_delegate) const override; 411 NetworkDelegate* network_delegate) const override;
414 void set_main_intercept_job(URLRequestJob* job); 412 void set_main_intercept_job(URLRequestJob* job);
415 413
416 private: 414 private:
417 mutable URLRequestJob* main_intercept_job_; 415 mutable URLRequestJob* main_intercept_job_;
418 }; 416 };
419 417
420 } // namespace net 418 } // namespace net
421 419
422 #endif // NET_URL_REQUEST_URL_REQUEST_TEST_UTIL_H_ 420 #endif // NET_URL_REQUEST_URL_REQUEST_TEST_UTIL_H_
OLDNEW
« no previous file with comments | « net/url_request/url_request_simple_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