OLD | NEW |
| (Empty) |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #include "net/spdy/multiplexed_http_stream.h" | |
6 | |
7 #include "base/logging.h" | |
8 | |
9 namespace net { | |
10 | |
11 MultiplexedHttpStream::MultiplexedHttpStream(MultiplexedSessionHandle session) | |
12 : session_(session) {} | |
13 | |
14 MultiplexedHttpStream::~MultiplexedHttpStream() {} | |
15 | |
16 bool MultiplexedHttpStream::GetRemoteEndpoint(IPEndPoint* endpoint) { | |
17 return session_.GetRemoteEndpoint(endpoint); | |
18 } | |
19 | |
20 void MultiplexedHttpStream::GetSSLInfo(SSLInfo* ssl_info) { | |
21 session_.GetSSLInfo(ssl_info); | |
22 } | |
23 | |
24 void MultiplexedHttpStream::SaveSSLInfo() { | |
25 session_.SaveSSLInfo(); | |
26 } | |
27 | |
28 void MultiplexedHttpStream::GetSSLCertRequestInfo( | |
29 SSLCertRequestInfo* cert_request_info) { | |
30 // A multiplexed stream cannot request client certificates. Client | |
31 // authentication may only occur during the initial SSL handshake. | |
32 NOTREACHED(); | |
33 } | |
34 | |
35 Error MultiplexedHttpStream::GetTokenBindingSignature( | |
36 crypto::ECPrivateKey* key, | |
37 TokenBindingType tb_type, | |
38 std::vector<uint8_t>* out) { | |
39 return session_.GetTokenBindingSignature(key, tb_type, out); | |
40 } | |
41 | |
42 void MultiplexedHttpStream::Drain(HttpNetworkSession* session) { | |
43 NOTREACHED(); | |
44 Close(false); | |
45 delete this; | |
46 } | |
47 | |
48 HttpStream* MultiplexedHttpStream::RenewStreamForAuth() { | |
49 return nullptr; | |
50 } | |
51 | |
52 void MultiplexedHttpStream::SetConnectionReused() {} | |
53 | |
54 bool MultiplexedHttpStream::CanReuseConnection() const { | |
55 // Multiplexed streams aren't considered reusable. | |
56 return false; | |
57 } | |
58 | |
59 } // namespace net | |
OLD | NEW |