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

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

Issue 7976036: net: make HSTS hosts use the normal SSL interstitials (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: ... Created 9 years, 3 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 } 122 }
123 bool request_failed() const { return request_failed_; } 123 bool request_failed() const { return request_failed_; }
124 bool have_certificate_errors() const { return have_certificate_errors_; } 124 bool have_certificate_errors() const { return have_certificate_errors_; }
125 125
126 // net::URLRequest::Delegate: 126 // net::URLRequest::Delegate:
127 virtual void OnReceivedRedirect(net::URLRequest* request, const GURL& new_url, 127 virtual void OnReceivedRedirect(net::URLRequest* request, const GURL& new_url,
128 bool* defer_redirect) OVERRIDE; 128 bool* defer_redirect) OVERRIDE;
129 virtual void OnAuthRequired(net::URLRequest* request, 129 virtual void OnAuthRequired(net::URLRequest* request,
130 net::AuthChallengeInfo* auth_info) OVERRIDE; 130 net::AuthChallengeInfo* auth_info) OVERRIDE;
131 virtual void OnSSLCertificateError(net::URLRequest* request, 131 virtual void OnSSLCertificateError(net::URLRequest* request,
132 int cert_error, 132 const net::SSLInfo& ssl_info,
133 net::X509Certificate* cert) OVERRIDE; 133 bool is_hsts_host) OVERRIDE;
134 virtual bool CanGetCookies(const net::URLRequest* request, 134 virtual bool CanGetCookies(const net::URLRequest* request,
135 const net::CookieList& cookie_list) const OVERRIDE; 135 const net::CookieList& cookie_list) const OVERRIDE;
136 virtual bool CanSetCookie(const net::URLRequest* request, 136 virtual bool CanSetCookie(const net::URLRequest* request,
137 const std::string& cookie_line, 137 const std::string& cookie_line,
138 net::CookieOptions* options) const OVERRIDE; 138 net::CookieOptions* options) const OVERRIDE;
139 virtual void OnResponseStarted(net::URLRequest* request) OVERRIDE; 139 virtual void OnResponseStarted(net::URLRequest* request) OVERRIDE;
140 virtual void OnReadCompleted(net::URLRequest* request, 140 virtual void OnReadCompleted(net::URLRequest* request,
141 int bytes_read) OVERRIDE; 141 int bytes_read) OVERRIDE;
142 142
143 private: 143 private:
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
223 // This bit-set indicates for each request id (key) what events may be sent 223 // This bit-set indicates for each request id (key) what events may be sent
224 // next. 224 // next.
225 std::map<int, int> next_states_; 225 std::map<int, int> next_states_;
226 226
227 // A log that records for each request id (key) the order in which On... 227 // A log that records for each request id (key) the order in which On...
228 // functions were called. 228 // functions were called.
229 std::map<int, std::string> event_order_; 229 std::map<int, std::string> event_order_;
230 }; 230 };
231 231
232 #endif // NET_URL_REQUEST_URL_REQUEST_TEST_UTIL_H_ 232 #endif // NET_URL_REQUEST_URL_REQUEST_TEST_UTIL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698