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 666 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
677 const NetLogWithSource& net_log) override { | 677 const NetLogWithSource& net_log) override { |
678 last_group_name_ = group_name; | 678 last_group_name_ = group_name; |
679 return ERR_IO_PENDING; | 679 return ERR_IO_PENDING; |
680 } | 680 } |
681 void CancelRequest(const std::string& group_name, | 681 void CancelRequest(const std::string& group_name, |
682 ClientSocketHandle* handle) override {} | 682 ClientSocketHandle* handle) override {} |
683 void ReleaseSocket(const std::string& group_name, | 683 void ReleaseSocket(const std::string& group_name, |
684 std::unique_ptr<StreamSocket> socket, | 684 std::unique_ptr<StreamSocket> socket, |
685 int id) override {} | 685 int id) override {} |
686 void CloseIdleSockets() override {} | 686 void CloseIdleSockets() override {} |
| 687 void CloseIdleSocketsInGroup(const std::string& group_name) override {} |
687 int IdleSocketCount() const override { return 0; } | 688 int IdleSocketCount() const override { return 0; } |
688 int IdleSocketCountInGroup(const std::string& group_name) const override { | 689 int IdleSocketCountInGroup(const std::string& group_name) const override { |
689 return 0; | 690 return 0; |
690 } | 691 } |
691 LoadState GetLoadState(const std::string& group_name, | 692 LoadState GetLoadState(const std::string& group_name, |
692 const ClientSocketHandle* handle) const override { | 693 const ClientSocketHandle* handle) const override { |
693 return LOAD_STATE_IDLE; | 694 return LOAD_STATE_IDLE; |
694 } | 695 } |
695 base::TimeDelta ConnectionTimeout() const override { | 696 base::TimeDelta ConnectionTimeout() const override { |
696 return base::TimeDelta(); | 697 return base::TimeDelta(); |
(...skipping 15821 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
16518 base::RunLoop().RunUntilIdle(); | 16519 base::RunLoop().RunUntilIdle(); |
16519 | 16520 |
16520 EXPECT_TRUE(trans.GetResponseInfo()->was_fetched_via_spdy); | 16521 EXPECT_TRUE(trans.GetResponseInfo()->was_fetched_via_spdy); |
16521 HttpRequestHeaders headers; | 16522 HttpRequestHeaders headers; |
16522 ASSERT_TRUE(trans.GetFullRequestHeaders(&headers)); | 16523 ASSERT_TRUE(trans.GetFullRequestHeaders(&headers)); |
16523 EXPECT_TRUE(headers.HasHeader(HttpRequestHeaders::kTokenBinding)); | 16524 EXPECT_TRUE(headers.HasHeader(HttpRequestHeaders::kTokenBinding)); |
16524 } | 16525 } |
16525 #endif // !defined(OS_IOS) | 16526 #endif // !defined(OS_IOS) |
16526 | 16527 |
16527 } // namespace net | 16528 } // namespace net |
OLD | NEW |