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

Side by Side Diff: net/http/http_basic_stream.h

Issue 1884943003: HttpStreamParser: Don't reuse sockets which receive unparsed data. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix drainer test ('True' means closed...) Created 4 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 | « no previous file | net/http/http_basic_stream.cc » ('j') | net/http/http_basic_stream.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 // HttpBasicStream is a simple implementation of HttpStream. It assumes it is 5 // HttpBasicStream is a simple implementation of HttpStream. It assumes it is
6 // not sharing a sharing with any other HttpStreams, therefore it just reads and 6 // not sharing a sharing with any other HttpStreams, therefore it just reads and
7 // writes directly to the Http Stream. 7 // writes directly to the Http Stream.
8 8
9 #ifndef NET_HTTP_HTTP_BASIC_STREAM_H_ 9 #ifndef NET_HTTP_HTTP_BASIC_STREAM_H_
10 #define NET_HTTP_HTTP_BASIC_STREAM_H_ 10 #define NET_HTTP_HTTP_BASIC_STREAM_H_
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 72
73 void GetSSLInfo(SSLInfo* ssl_info) override; 73 void GetSSLInfo(SSLInfo* ssl_info) override;
74 74
75 void GetSSLCertRequestInfo(SSLCertRequestInfo* cert_request_info) override; 75 void GetSSLCertRequestInfo(SSLCertRequestInfo* cert_request_info) override;
76 76
77 bool GetRemoteEndpoint(IPEndPoint* endpoint) override; 77 bool GetRemoteEndpoint(IPEndPoint* endpoint) override;
78 78
79 Error GetSignedEKMForTokenBinding(crypto::ECPrivateKey* key, 79 Error GetSignedEKMForTokenBinding(crypto::ECPrivateKey* key,
80 std::vector<uint8_t>* out) override; 80 std::vector<uint8_t>* out) override;
81 81
82 void Drain(HttpNetworkSession* session) override; 82 void Drain(HttpNetworkSession* session,
83 scoped_ptr<HttpResponseInfo> response_info) override;
83 84
84 void PopulateNetErrorDetails(NetErrorDetails* details) override; 85 void PopulateNetErrorDetails(NetErrorDetails* details) override;
85 86
86 void SetPriority(RequestPriority priority) override; 87 void SetPriority(RequestPriority priority) override;
87 88
88 private: 89 private:
89 HttpStreamParser* parser() const { return state_.parser(); } 90 HttpStreamParser* parser() const { return state_.parser(); }
90 91
91 HttpBasicState state_; 92 HttpBasicState state_;
92 93
93 DISALLOW_COPY_AND_ASSIGN(HttpBasicStream); 94 DISALLOW_COPY_AND_ASSIGN(HttpBasicStream);
94 }; 95 };
95 96
96 } // namespace net 97 } // namespace net
97 98
98 #endif // NET_HTTP_HTTP_BASIC_STREAM_H_ 99 #endif // NET_HTTP_HTTP_BASIC_STREAM_H_
OLDNEW
« no previous file with comments | « no previous file | net/http/http_basic_stream.cc » ('j') | net/http/http_basic_stream.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698