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 568 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
579 CaptureGroupNameSocketPool(HostResolver* host_resolver, | 579 CaptureGroupNameSocketPool(HostResolver* host_resolver, |
580 CertVerifier* cert_verifier); | 580 CertVerifier* cert_verifier); |
581 | 581 |
582 const std::string last_group_name_received() const { | 582 const std::string last_group_name_received() const { |
583 return last_group_name_; | 583 return last_group_name_; |
584 } | 584 } |
585 | 585 |
586 int RequestSocket(const std::string& group_name, | 586 int RequestSocket(const std::string& group_name, |
587 const void* socket_params, | 587 const void* socket_params, |
588 RequestPriority priority, | 588 RequestPriority priority, |
| 589 bool ignore_limits, |
589 ClientSocketHandle* handle, | 590 ClientSocketHandle* handle, |
590 const CompletionCallback& callback, | 591 const CompletionCallback& callback, |
591 const BoundNetLog& net_log) override { | 592 const BoundNetLog& net_log) override { |
592 last_group_name_ = group_name; | 593 last_group_name_ = group_name; |
593 return ERR_IO_PENDING; | 594 return ERR_IO_PENDING; |
594 } | 595 } |
595 void CancelRequest(const std::string& group_name, | 596 void CancelRequest(const std::string& group_name, |
596 ClientSocketHandle* handle) override {} | 597 ClientSocketHandle* handle) override {} |
597 void ReleaseSocket(const std::string& group_name, | 598 void ReleaseSocket(const std::string& group_name, |
598 scoped_ptr<StreamSocket> socket, | 599 scoped_ptr<StreamSocket> socket, |
(...skipping 15197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
15796 | 15797 |
15797 scoped_ptr<HttpNetworkSession> session(CreateSession(&session_deps_)); | 15798 scoped_ptr<HttpNetworkSession> session(CreateSession(&session_deps_)); |
15798 HttpNetworkTransaction trans(DEFAULT_PRIORITY, session.get()); | 15799 HttpNetworkTransaction trans(DEFAULT_PRIORITY, session.get()); |
15799 | 15800 |
15800 EXPECT_THAT(trans.server_ssl_config_.alpn_protos, | 15801 EXPECT_THAT(trans.server_ssl_config_.alpn_protos, |
15801 testing::ElementsAre(kProtoHTTP2, kProtoSPDY31, kProtoHTTP11)); | 15802 testing::ElementsAre(kProtoHTTP2, kProtoSPDY31, kProtoHTTP11)); |
15802 EXPECT_TRUE(trans.server_ssl_config_.npn_protos.empty()); | 15803 EXPECT_TRUE(trans.server_ssl_config_.npn_protos.empty()); |
15803 } | 15804 } |
15804 | 15805 |
15805 } // namespace net | 15806 } // namespace net |
OLD | NEW |