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

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

Issue 403393003: HTTP retry support. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 5 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
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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 virtual int ReadResponseBody(IOBuffer* buf, 50 virtual int ReadResponseBody(IOBuffer* buf,
51 int buf_len, 51 int buf_len,
52 const CompletionCallback& callback) OVERRIDE; 52 const CompletionCallback& callback) OVERRIDE;
53 virtual void Close(bool not_reusable) OVERRIDE; 53 virtual void Close(bool not_reusable) OVERRIDE;
54 virtual bool IsResponseBodyComplete() const OVERRIDE; 54 virtual bool IsResponseBodyComplete() const OVERRIDE;
55 virtual bool CanFindEndOfResponse() const OVERRIDE; 55 virtual bool CanFindEndOfResponse() const OVERRIDE;
56 virtual bool IsConnectionReused() const OVERRIDE; 56 virtual bool IsConnectionReused() const OVERRIDE;
57 virtual void SetConnectionReused() OVERRIDE; 57 virtual void SetConnectionReused() OVERRIDE;
58 virtual bool IsConnectionReusable() const OVERRIDE; 58 virtual bool IsConnectionReusable() const OVERRIDE;
59 virtual int64 GetTotalReceivedBytes() const OVERRIDE; 59 virtual int64 GetTotalReceivedBytes() const OVERRIDE;
60 virtual int64 GetReceivedBodyLength() const OVERRIDE;
60 virtual bool GetLoadTimingInfo(LoadTimingInfo* load_timing_info) const 61 virtual bool GetLoadTimingInfo(LoadTimingInfo* load_timing_info) const
61 OVERRIDE; 62 OVERRIDE;
62 virtual void GetSSLInfo(SSLInfo* ssl_info) OVERRIDE; 63 virtual void GetSSLInfo(SSLInfo* ssl_info) OVERRIDE;
63 virtual void GetSSLCertRequestInfo( 64 virtual void GetSSLCertRequestInfo(
64 SSLCertRequestInfo* cert_request_info) OVERRIDE; 65 SSLCertRequestInfo* cert_request_info) OVERRIDE;
65 virtual bool IsSpdyHttpStream() const OVERRIDE; 66 virtual bool IsSpdyHttpStream() const OVERRIDE;
66 virtual void Drain(HttpNetworkSession* session) OVERRIDE; 67 virtual void Drain(HttpNetworkSession* session) OVERRIDE;
67 virtual void SetPriority(RequestPriority priority) OVERRIDE; 68 virtual void SetPriority(RequestPriority priority) OVERRIDE;
69 virtual void SetRestartInfo(int64 read_offset, const void* hash,
70 size_t hash_length) OVERRIDE;
71 virtual void GetHash(void* output, size_t len) OVERRIDE;
68 72
69 // This is called from the top level once correct handshake response headers 73 // This is called from the top level once correct handshake response headers
70 // have been received. It creates an appropriate subclass of WebSocketStream 74 // have been received. It creates an appropriate subclass of WebSocketStream
71 // depending on what extensions were negotiated. This object is unusable after 75 // depending on what extensions were negotiated. This object is unusable after
72 // Upgrade() has been called and should be disposed of as soon as possible. 76 // Upgrade() has been called and should be disposed of as soon as possible.
73 virtual scoped_ptr<WebSocketStream> Upgrade() OVERRIDE; 77 virtual scoped_ptr<WebSocketStream> Upgrade() OVERRIDE;
74 78
75 // Set the value used for the next Sec-WebSocket-Key header 79 // Set the value used for the next Sec-WebSocket-Key header
76 // deterministically. The key is only used once, and then discarded. 80 // deterministically. The key is only used once, and then discarded.
77 // For tests only. 81 // For tests only.
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 scoped_ptr<WebSocketExtensionParams> extension_params_; 137 scoped_ptr<WebSocketExtensionParams> extension_params_;
134 138
135 std::string* failure_message_; 139 std::string* failure_message_;
136 140
137 DISALLOW_COPY_AND_ASSIGN(WebSocketBasicHandshakeStream); 141 DISALLOW_COPY_AND_ASSIGN(WebSocketBasicHandshakeStream);
138 }; 142 };
139 143
140 } // namespace net 144 } // namespace net
141 145
142 #endif // NET_WEBSOCKETS_WEBSOCKET_BASIC_HANDSHAKE_STREAM_H_ 146 #endif // NET_WEBSOCKETS_WEBSOCKET_BASIC_HANDSHAKE_STREAM_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698