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

Side by Side Diff: net/websockets/websocket_basic_handshake_stream.h

Issue 699123002: Remove HttpStreamBase. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 6 years, 1 month 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
OLDNEW
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 #ifndef NET_WEBSOCKETS_WEBSOCKET_BASIC_HANDSHAKE_STREAM_H_ 5 #ifndef NET_WEBSOCKETS_WEBSOCKET_BASIC_HANDSHAKE_STREAM_H_
6 #define NET_WEBSOCKETS_WEBSOCKET_BASIC_HANDSHAKE_STREAM_H_ 6 #define NET_WEBSOCKETS_WEBSOCKET_BASIC_HANDSHAKE_STREAM_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 bool IsConnectionReused() const override; 56 bool IsConnectionReused() const override;
57 void SetConnectionReused() override; 57 void SetConnectionReused() override;
58 bool IsConnectionReusable() const override; 58 bool IsConnectionReusable() const override;
59 int64 GetTotalReceivedBytes() const override; 59 int64 GetTotalReceivedBytes() const override;
60 bool GetLoadTimingInfo(LoadTimingInfo* load_timing_info) const override; 60 bool GetLoadTimingInfo(LoadTimingInfo* load_timing_info) const override;
61 void GetSSLInfo(SSLInfo* ssl_info) override; 61 void GetSSLInfo(SSLInfo* ssl_info) override;
62 void GetSSLCertRequestInfo(SSLCertRequestInfo* cert_request_info) override; 62 void GetSSLCertRequestInfo(SSLCertRequestInfo* cert_request_info) override;
63 bool IsSpdyHttpStream() const override; 63 bool IsSpdyHttpStream() const override;
64 void Drain(HttpNetworkSession* session) override; 64 void Drain(HttpNetworkSession* session) override;
65 void SetPriority(RequestPriority priority) override; 65 void SetPriority(RequestPriority priority) override;
66 UploadProgress GetUploadProgress() const override;
67 HttpStream* RenewStreamForAuth() override;
68
66 69
67 // This is called from the top level once correct handshake response headers 70 // This is called from the top level once correct handshake response headers
68 // have been received. It creates an appropriate subclass of WebSocketStream 71 // have been received. It creates an appropriate subclass of WebSocketStream
69 // depending on what extensions were negotiated. This object is unusable after 72 // depending on what extensions were negotiated. This object is unusable after
70 // Upgrade() has been called and should be disposed of as soon as possible. 73 // Upgrade() has been called and should be disposed of as soon as possible.
71 scoped_ptr<WebSocketStream> Upgrade() override; 74 scoped_ptr<WebSocketStream> Upgrade() override;
72 75
73 // Set the value used for the next Sec-WebSocket-Key header 76 // Set the value used for the next Sec-WebSocket-Key header
74 // deterministically. The key is only used once, and then discarded. 77 // deterministically. The key is only used once, and then discarded.
75 // For tests only. 78 // For tests only.
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 scoped_ptr<WebSocketExtensionParams> extension_params_; 134 scoped_ptr<WebSocketExtensionParams> extension_params_;
132 135
133 std::string* failure_message_; 136 std::string* failure_message_;
134 137
135 DISALLOW_COPY_AND_ASSIGN(WebSocketBasicHandshakeStream); 138 DISALLOW_COPY_AND_ASSIGN(WebSocketBasicHandshakeStream);
136 }; 139 };
137 140
138 } // namespace net 141 } // namespace net
139 142
140 #endif // NET_WEBSOCKETS_WEBSOCKET_BASIC_HANDSHAKE_STREAM_H_ 143 #endif // NET_WEBSOCKETS_WEBSOCKET_BASIC_HANDSHAKE_STREAM_H_
OLDNEW
« no previous file with comments | « net/url_request/url_request_http_job_unittest.cc ('k') | net/websockets/websocket_basic_handshake_stream.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698