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

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

Issue 143913003: Add construction of WebSocketDeflateStream (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Rebase and add DCHECK() for extension params. Created 6 years, 10 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/websockets/websocket_basic_handshake_stream.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
11 #include "base/memory/ref_counted.h" 11 #include "base/memory/ref_counted.h"
12 #include "base/memory/scoped_ptr.h" 12 #include "base/memory/scoped_ptr.h"
13 #include "net/base/net_export.h" 13 #include "net/base/net_export.h"
14 #include "net/http/http_basic_state.h" 14 #include "net/http/http_basic_state.h"
15 #include "net/websockets/websocket_handshake_stream_base.h" 15 #include "net/websockets/websocket_handshake_stream_base.h"
16 #include "url/gurl.h" 16 #include "url/gurl.h"
17 17
18 namespace net { 18 namespace net {
19 19
20 class ClientSocketHandle; 20 class ClientSocketHandle;
21 class HttpResponseHeaders; 21 class HttpResponseHeaders;
22 class HttpResponseInfo; 22 class HttpResponseInfo;
23 class HttpStreamParser; 23 class HttpStreamParser;
24 24
25 struct WebSocketExtensionParams;
26
25 class NET_EXPORT_PRIVATE WebSocketBasicHandshakeStream 27 class NET_EXPORT_PRIVATE WebSocketBasicHandshakeStream
26 : public WebSocketHandshakeStreamBase { 28 : public WebSocketHandshakeStreamBase {
27 public: 29 public:
28 WebSocketBasicHandshakeStream( 30 WebSocketBasicHandshakeStream(
29 scoped_ptr<ClientSocketHandle> connection, 31 scoped_ptr<ClientSocketHandle> connection,
30 WebSocketStream::ConnectDelegate* connect_delegate, 32 WebSocketStream::ConnectDelegate* connect_delegate,
31 bool using_proxy, 33 bool using_proxy,
32 std::vector<std::string> requested_sub_protocols, 34 std::vector<std::string> requested_sub_protocols,
33 std::vector<std::string> requested_extensions); 35 std::vector<std::string> requested_extensions);
34 36
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 122
121 // The extensions we requested. 123 // The extensions we requested.
122 std::vector<std::string> requested_extensions_; 124 std::vector<std::string> requested_extensions_;
123 125
124 // The sub-protocol selected by the server. 126 // The sub-protocol selected by the server.
125 std::string sub_protocol_; 127 std::string sub_protocol_;
126 128
127 // The extension(s) selected by the server. 129 // The extension(s) selected by the server.
128 std::string extensions_; 130 std::string extensions_;
129 131
132 // The extension parameters. The class is defined in the implementation file
133 // to avoid including extension-related header files here.
134 scoped_ptr<WebSocketExtensionParams> extension_params_;
135
130 std::string failure_message_; 136 std::string failure_message_;
131 137
132 DISALLOW_COPY_AND_ASSIGN(WebSocketBasicHandshakeStream); 138 DISALLOW_COPY_AND_ASSIGN(WebSocketBasicHandshakeStream);
133 }; 139 };
134 140
135 } // namespace net 141 } // namespace net
136 142
137 #endif // NET_WEBSOCKETS_WEBSOCKET_BASIC_HANDSHAKE_STREAM_H_ 143 #endif // NET_WEBSOCKETS_WEBSOCKET_BASIC_HANDSHAKE_STREAM_H_
OLDNEW
« no previous file with comments | « no previous file | net/websockets/websocket_basic_handshake_stream.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698