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

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

Issue 2633663003: Implements strict secure cookies as the default behavior in //net (Closed)
Patch Set: Rebase on ToT Created 3 years, 10 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_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 <stdint.h> 8 #include <stdint.h>
9 #include <stdlib.h> 9 #include <stdlib.h>
10 10
(...skipping 340 matching lines...) Expand 10 before | Expand all | Expand 10 after
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& path) const override;
360 bool OnAreExperimentalCookieFeaturesEnabled() const override; 360 bool OnAreExperimentalCookieFeaturesEnabled() const override;
361 bool OnAreStrictSecureCookiesEnabled() const override;
362 bool OnCancelURLRequestWithPolicyViolatingReferrerHeader( 361 bool OnCancelURLRequestWithPolicyViolatingReferrerHeader(
363 const URLRequest& request, 362 const URLRequest& request,
364 const GURL& target_url, 363 const GURL& target_url,
365 const GURL& referrer_url) const override; 364 const GURL& referrer_url) const override;
366 365
367 void InitRequestStatesIfNew(int request_id); 366 void InitRequestStatesIfNew(int request_id);
368 367
369 GURL redirect_on_headers_received_url_; 368 GURL redirect_on_headers_received_url_;
370 // URL marked as safe for redirection at the onHeadersReceived stage. 369 // URL marked as safe for redirection at the onHeadersReceived stage.
371 GURL allowed_unsafe_redirect_url_; 370 GURL allowed_unsafe_redirect_url_;
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
424 NetworkDelegate* network_delegate) const override; 423 NetworkDelegate* network_delegate) const override;
425 void set_main_intercept_job(std::unique_ptr<URLRequestJob> job); 424 void set_main_intercept_job(std::unique_ptr<URLRequestJob> job);
426 425
427 private: 426 private:
428 mutable std::unique_ptr<URLRequestJob> main_intercept_job_; 427 mutable std::unique_ptr<URLRequestJob> main_intercept_job_;
429 }; 428 };
430 429
431 } // namespace net 430 } // namespace net
432 431
433 #endif // NET_URL_REQUEST_URL_REQUEST_TEST_UTIL_H_ 432 #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