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

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

Issue 2786583002: chromeos: Check both original and absolute paths for file: scheme (Closed)
Patch Set: remove dcheck Created 3 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
« no previous file with comments | « net/url_request/url_request_file_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 <stdint.h> 8 #include <stdint.h>
9 #include <stdlib.h> 9 #include <stdlib.h>
10 10
(...skipping 338 matching lines...) Expand 10 before | Expand all | Expand 10 after
349 URLRequest* request, 349 URLRequest* request,
350 const AuthChallengeInfo& auth_info, 350 const AuthChallengeInfo& auth_info,
351 const AuthCallback& callback, 351 const AuthCallback& callback,
352 AuthCredentials* credentials) override; 352 AuthCredentials* credentials) override;
353 bool OnCanGetCookies(const URLRequest& request, 353 bool OnCanGetCookies(const URLRequest& request,
354 const CookieList& cookie_list) override; 354 const CookieList& cookie_list) override;
355 bool OnCanSetCookie(const URLRequest& request, 355 bool OnCanSetCookie(const URLRequest& request,
356 const std::string& cookie_line, 356 const std::string& cookie_line,
357 CookieOptions* options) override; 357 CookieOptions* options) override;
358 bool OnCanAccessFile(const URLRequest& request, 358 bool OnCanAccessFile(const URLRequest& request,
359 const base::FilePath& path) const override; 359 const base::FilePath& original_path,
360 const base::FilePath& absolute_path) const override;
360 bool OnAreExperimentalCookieFeaturesEnabled() const override; 361 bool OnAreExperimentalCookieFeaturesEnabled() const override;
361 bool OnCancelURLRequestWithPolicyViolatingReferrerHeader( 362 bool OnCancelURLRequestWithPolicyViolatingReferrerHeader(
362 const URLRequest& request, 363 const URLRequest& request,
363 const GURL& target_url, 364 const GURL& target_url,
364 const GURL& referrer_url) const override; 365 const GURL& referrer_url) const override;
365 366
366 void InitRequestStatesIfNew(int request_id); 367 void InitRequestStatesIfNew(int request_id);
367 368
368 GURL redirect_on_headers_received_url_; 369 GURL redirect_on_headers_received_url_;
369 // URL marked as safe for redirection at the onHeadersReceived stage. 370 // URL marked as safe for redirection at the onHeadersReceived stage.
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
423 NetworkDelegate* network_delegate) const override; 424 NetworkDelegate* network_delegate) const override;
424 void set_main_intercept_job(std::unique_ptr<URLRequestJob> job); 425 void set_main_intercept_job(std::unique_ptr<URLRequestJob> job);
425 426
426 private: 427 private:
427 mutable std::unique_ptr<URLRequestJob> main_intercept_job_; 428 mutable std::unique_ptr<URLRequestJob> main_intercept_job_;
428 }; 429 };
429 430
430 } // namespace net 431 } // namespace net
431 432
432 #endif // NET_URL_REQUEST_URL_REQUEST_TEST_UTIL_H_ 433 #endif // NET_URL_REQUEST_URL_REQUEST_TEST_UTIL_H_
OLDNEW
« no previous file with comments | « net/url_request/url_request_file_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