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 14218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
14229 RequestPriority priority, | 14229 RequestPriority priority, |
14230 const SSLConfig& server_ssl_config, | 14230 const SSLConfig& server_ssl_config, |
14231 const SSLConfig& proxy_ssl_config, | 14231 const SSLConfig& proxy_ssl_config, |
14232 HttpStreamRequest::Delegate* delegate, | 14232 HttpStreamRequest::Delegate* delegate, |
14233 const BoundNetLog& net_log) override { | 14233 const BoundNetLog& net_log) override { |
14234 FakeStreamRequest* fake_request = new FakeStreamRequest(priority, delegate); | 14234 FakeStreamRequest* fake_request = new FakeStreamRequest(priority, delegate); |
14235 last_stream_request_ = fake_request->AsWeakPtr(); | 14235 last_stream_request_ = fake_request->AsWeakPtr(); |
14236 return fake_request; | 14236 return fake_request; |
14237 } | 14237 } |
14238 | 14238 |
| 14239 HttpStreamRequest* RequestBidirectionalStreamJob( |
| 14240 const HttpRequestInfo& info, |
| 14241 RequestPriority priority, |
| 14242 const SSLConfig& server_ssl_config, |
| 14243 const SSLConfig& proxy_ssl_config, |
| 14244 HttpStreamRequest::Delegate* delegate, |
| 14245 const BoundNetLog& net_log) override { |
| 14246 NOTREACHED(); |
| 14247 return nullptr; |
| 14248 } |
| 14249 |
14239 HttpStreamRequest* RequestWebSocketHandshakeStream( | 14250 HttpStreamRequest* RequestWebSocketHandshakeStream( |
14240 const HttpRequestInfo& info, | 14251 const HttpRequestInfo& info, |
14241 RequestPriority priority, | 14252 RequestPriority priority, |
14242 const SSLConfig& server_ssl_config, | 14253 const SSLConfig& server_ssl_config, |
14243 const SSLConfig& proxy_ssl_config, | 14254 const SSLConfig& proxy_ssl_config, |
14244 HttpStreamRequest::Delegate* delegate, | 14255 HttpStreamRequest::Delegate* delegate, |
14245 WebSocketHandshakeStreamBase::CreateHelper* create_helper, | 14256 WebSocketHandshakeStreamBase::CreateHelper* create_helper, |
14246 const BoundNetLog& net_log) override { | 14257 const BoundNetLog& net_log) override { |
14247 FakeStreamRequest* fake_request = | 14258 FakeStreamRequest* fake_request = |
14248 new FakeStreamRequest(priority, delegate, create_helper); | 14259 new FakeStreamRequest(priority, delegate, create_helper); |
(...skipping 1249 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
15498 | 15509 |
15499 scoped_ptr<HttpNetworkSession> session(CreateSession(&session_deps_)); | 15510 scoped_ptr<HttpNetworkSession> session(CreateSession(&session_deps_)); |
15500 HttpNetworkTransaction trans(DEFAULT_PRIORITY, session.get()); | 15511 HttpNetworkTransaction trans(DEFAULT_PRIORITY, session.get()); |
15501 | 15512 |
15502 EXPECT_THAT(trans.server_ssl_config_.alpn_protos, | 15513 EXPECT_THAT(trans.server_ssl_config_.alpn_protos, |
15503 testing::ElementsAre(kProtoHTTP2, kProtoSPDY31, kProtoHTTP11)); | 15514 testing::ElementsAre(kProtoHTTP2, kProtoSPDY31, kProtoHTTP11)); |
15504 EXPECT_TRUE(trans.server_ssl_config_.npn_protos.empty()); | 15515 EXPECT_TRUE(trans.server_ssl_config_.npn_protos.empty()); |
15505 } | 15516 } |
15506 | 15517 |
15507 } // namespace net | 15518 } // namespace net |
OLD | NEW |