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 #include <limits> | 10 #include <limits> |
(...skipping 14616 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
14627 RequestPriority priority, | 14627 RequestPriority priority, |
14628 const SSLConfig& server_ssl_config, | 14628 const SSLConfig& server_ssl_config, |
14629 const SSLConfig& proxy_ssl_config, | 14629 const SSLConfig& proxy_ssl_config, |
14630 HttpStreamRequest::Delegate* delegate, | 14630 HttpStreamRequest::Delegate* delegate, |
14631 const BoundNetLog& net_log) override { | 14631 const BoundNetLog& net_log) override { |
14632 FakeStreamRequest* fake_request = new FakeStreamRequest(priority, delegate); | 14632 FakeStreamRequest* fake_request = new FakeStreamRequest(priority, delegate); |
14633 last_stream_request_ = fake_request->AsWeakPtr(); | 14633 last_stream_request_ = fake_request->AsWeakPtr(); |
14634 return fake_request; | 14634 return fake_request; |
14635 } | 14635 } |
14636 | 14636 |
14637 HttpStreamRequest* RequestBidirectionalStreamJob( | 14637 HttpStreamRequest* RequestBidirectionalStreamImpl( |
14638 const HttpRequestInfo& info, | 14638 const HttpRequestInfo& info, |
14639 RequestPriority priority, | 14639 RequestPriority priority, |
14640 const SSLConfig& server_ssl_config, | 14640 const SSLConfig& server_ssl_config, |
14641 const SSLConfig& proxy_ssl_config, | 14641 const SSLConfig& proxy_ssl_config, |
14642 HttpStreamRequest::Delegate* delegate, | 14642 HttpStreamRequest::Delegate* delegate, |
14643 const BoundNetLog& net_log) override { | 14643 const BoundNetLog& net_log) override { |
14644 NOTREACHED(); | 14644 NOTREACHED(); |
14645 return nullptr; | 14645 return nullptr; |
14646 } | 14646 } |
14647 | 14647 |
(...skipping 1302 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
15950 base::MessageLoop::current()->RunUntilIdle(); | 15950 base::MessageLoop::current()->RunUntilIdle(); |
15951 | 15951 |
15952 EXPECT_TRUE(trans.GetResponseInfo()->was_fetched_via_spdy); | 15952 EXPECT_TRUE(trans.GetResponseInfo()->was_fetched_via_spdy); |
15953 HttpRequestHeaders headers; | 15953 HttpRequestHeaders headers; |
15954 ASSERT_TRUE(trans.GetFullRequestHeaders(&headers)); | 15954 ASSERT_TRUE(trans.GetFullRequestHeaders(&headers)); |
15955 EXPECT_TRUE(headers.HasHeader(HttpRequestHeaders::kTokenBinding)); | 15955 EXPECT_TRUE(headers.HasHeader(HttpRequestHeaders::kTokenBinding)); |
15956 } | 15956 } |
15957 #endif // !defined(OS_IOS) | 15957 #endif // !defined(OS_IOS) |
15958 | 15958 |
15959 } // namespace net | 15959 } // namespace net |
OLD | NEW |