Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(75)

Side by Side Diff: net/spdy/multiplexed_http_stream.cc

Issue 2832973003: Split net/spdy into core and chromium subdirectories. (Closed)
Patch Set: Fix some more build rules. Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « net/spdy/multiplexed_http_stream.h ('k') | net/spdy/multiplexed_session.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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
OLDNEW
« no previous file with comments | « net/spdy/multiplexed_http_stream.h ('k') | net/spdy/multiplexed_session.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698