| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 #include "net/http/http_network_transaction.h" | 5 #include "net/http/http_network_transaction.h" |
| 6 | 6 |
| 7 #include <math.h> // ceil | 7 #include <math.h> // ceil |
| 8 #include <stdarg.h> | 8 #include <stdarg.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 14175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 14186 } | 14186 } |
| 14187 | 14187 |
| 14188 void GetSSLInfo(SSLInfo* ssl_info) override { ADD_FAILURE(); } | 14188 void GetSSLInfo(SSLInfo* ssl_info) override { ADD_FAILURE(); } |
| 14189 | 14189 |
| 14190 void GetSSLCertRequestInfo(SSLCertRequestInfo* cert_request_info) override { | 14190 void GetSSLCertRequestInfo(SSLCertRequestInfo* cert_request_info) override { |
| 14191 ADD_FAILURE(); | 14191 ADD_FAILURE(); |
| 14192 } | 14192 } |
| 14193 | 14193 |
| 14194 bool GetRemoteEndpoint(IPEndPoint* endpoint) override { return false; } | 14194 bool GetRemoteEndpoint(IPEndPoint* endpoint) override { return false; } |
| 14195 | 14195 |
| 14196 Error GetSignedEKMForTokenBinding(crypto::ECPrivateKey* key, | 14196 Error GetTokenBindingSignature(crypto::ECPrivateKey* key, |
| 14197 std::vector<uint8_t>* out) override { | 14197 TokenBindingType tb_type, |
| 14198 std::vector<uint8_t>* out) override { |
| 14198 ADD_FAILURE(); | 14199 ADD_FAILURE(); |
| 14199 return ERR_NOT_IMPLEMENTED; | 14200 return ERR_NOT_IMPLEMENTED; |
| 14200 } | 14201 } |
| 14201 | 14202 |
| 14202 void Drain(HttpNetworkSession* session) override { ADD_FAILURE(); } | 14203 void Drain(HttpNetworkSession* session) override { ADD_FAILURE(); } |
| 14203 | 14204 |
| 14204 void PopulateNetErrorDetails(NetErrorDetails* details) override { return; } | 14205 void PopulateNetErrorDetails(NetErrorDetails* details) override { return; } |
| 14205 | 14206 |
| 14206 void SetPriority(RequestPriority priority) override { priority_ = priority; } | 14207 void SetPriority(RequestPriority priority) override { priority_ = priority; } |
| 14207 | 14208 |
| (...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 14420 } | 14421 } |
| 14421 | 14422 |
| 14422 void GetSSLInfo(SSLInfo* ssl_info) override {} | 14423 void GetSSLInfo(SSLInfo* ssl_info) override {} |
| 14423 | 14424 |
| 14424 void GetSSLCertRequestInfo(SSLCertRequestInfo* cert_request_info) override { | 14425 void GetSSLCertRequestInfo(SSLCertRequestInfo* cert_request_info) override { |
| 14425 NOTREACHED(); | 14426 NOTREACHED(); |
| 14426 } | 14427 } |
| 14427 | 14428 |
| 14428 bool GetRemoteEndpoint(IPEndPoint* endpoint) override { return false; } | 14429 bool GetRemoteEndpoint(IPEndPoint* endpoint) override { return false; } |
| 14429 | 14430 |
| 14430 Error GetSignedEKMForTokenBinding(crypto::ECPrivateKey* key, | 14431 Error GetTokenBindingSignature(crypto::ECPrivateKey* key, |
| 14431 std::vector<uint8_t>* out) override { | 14432 TokenBindingType tb_type, |
| 14433 std::vector<uint8_t>* out) override { |
| 14432 ADD_FAILURE(); | 14434 ADD_FAILURE(); |
| 14433 return ERR_NOT_IMPLEMENTED; | 14435 return ERR_NOT_IMPLEMENTED; |
| 14434 } | 14436 } |
| 14435 | 14437 |
| 14436 void Drain(HttpNetworkSession* session) override { NOTREACHED(); } | 14438 void Drain(HttpNetworkSession* session) override { NOTREACHED(); } |
| 14437 | 14439 |
| 14438 void PopulateNetErrorDetails(NetErrorDetails* details) override { return; } | 14440 void PopulateNetErrorDetails(NetErrorDetails* details) override { return; } |
| 14439 | 14441 |
| 14440 void SetPriority(RequestPriority priority) override { NOTREACHED(); } | 14442 void SetPriority(RequestPriority priority) override { NOTREACHED(); } |
| 14441 | 14443 |
| (...skipping 1131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 15573 base::RunLoop().RunUntilIdle(); | 15575 base::RunLoop().RunUntilIdle(); |
| 15574 | 15576 |
| 15575 EXPECT_TRUE(trans.GetResponseInfo()->was_fetched_via_spdy); | 15577 EXPECT_TRUE(trans.GetResponseInfo()->was_fetched_via_spdy); |
| 15576 HttpRequestHeaders headers; | 15578 HttpRequestHeaders headers; |
| 15577 ASSERT_TRUE(trans.GetFullRequestHeaders(&headers)); | 15579 ASSERT_TRUE(trans.GetFullRequestHeaders(&headers)); |
| 15578 EXPECT_TRUE(headers.HasHeader(HttpRequestHeaders::kTokenBinding)); | 15580 EXPECT_TRUE(headers.HasHeader(HttpRequestHeaders::kTokenBinding)); |
| 15579 } | 15581 } |
| 15580 #endif // !defined(OS_IOS) | 15582 #endif // !defined(OS_IOS) |
| 15581 | 15583 |
| 15582 } // namespace net | 15584 } // namespace net |
| OLD | NEW |