| 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 660 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 671 RequestPriority priority, | 671 RequestPriority priority, |
| 672 ClientSocketPool::RespectLimits respect_limits, | 672 ClientSocketPool::RespectLimits respect_limits, |
| 673 ClientSocketHandle* handle, | 673 ClientSocketHandle* handle, |
| 674 const CompletionCallback& callback, | 674 const CompletionCallback& callback, |
| 675 const NetLogWithSource& net_log) override { | 675 const NetLogWithSource& net_log) override { |
| 676 last_group_name_ = group_name; | 676 last_group_name_ = group_name; |
| 677 return ERR_IO_PENDING; | 677 return ERR_IO_PENDING; |
| 678 } | 678 } |
| 679 void CancelRequest(const std::string& group_name, | 679 void CancelRequest(const std::string& group_name, |
| 680 ClientSocketHandle* handle) override {} | 680 ClientSocketHandle* handle) override {} |
| 681 void ReleaseSocket(const std::string& group_name, | 681 void ReleaseSocket( |
| 682 std::unique_ptr<StreamSocket> socket, | 682 const std::string& group_name, |
| 683 int id) override {} | 683 std::unique_ptr<StreamSocket> socket, |
| 684 int id, |
| 685 const LoadTimingInfo::ConnectTiming& connect_timing) override {} |
| 684 void CloseIdleSockets() override {} | 686 void CloseIdleSockets() override {} |
| 685 int IdleSocketCount() const override { return 0; } | 687 int IdleSocketCount() const override { return 0; } |
| 686 int IdleSocketCountInGroup(const std::string& group_name) const override { | 688 int IdleSocketCountInGroup(const std::string& group_name) const override { |
| 687 return 0; | 689 return 0; |
| 688 } | 690 } |
| 689 LoadState GetLoadState(const std::string& group_name, | 691 LoadState GetLoadState(const std::string& group_name, |
| 690 const ClientSocketHandle* handle) const override { | 692 const ClientSocketHandle* handle) const override { |
| 691 return LOAD_STATE_IDLE; | 693 return LOAD_STATE_IDLE; |
| 692 } | 694 } |
| 693 base::TimeDelta ConnectionTimeout() const override { | 695 base::TimeDelta ConnectionTimeout() const override { |
| (...skipping 15807 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 16501 base::RunLoop().RunUntilIdle(); | 16503 base::RunLoop().RunUntilIdle(); |
| 16502 | 16504 |
| 16503 EXPECT_TRUE(trans.GetResponseInfo()->was_fetched_via_spdy); | 16505 EXPECT_TRUE(trans.GetResponseInfo()->was_fetched_via_spdy); |
| 16504 HttpRequestHeaders headers; | 16506 HttpRequestHeaders headers; |
| 16505 ASSERT_TRUE(trans.GetFullRequestHeaders(&headers)); | 16507 ASSERT_TRUE(trans.GetFullRequestHeaders(&headers)); |
| 16506 EXPECT_TRUE(headers.HasHeader(HttpRequestHeaders::kTokenBinding)); | 16508 EXPECT_TRUE(headers.HasHeader(HttpRequestHeaders::kTokenBinding)); |
| 16507 } | 16509 } |
| 16508 #endif // !defined(OS_IOS) | 16510 #endif // !defined(OS_IOS) |
| 16509 | 16511 |
| 16510 } // namespace net | 16512 } // namespace net |
| OLD | NEW |