Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 Loading... | |
| 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 declared in the implementation file | |
|
yhirano
2014/01/27 02:46:18
s/declared/defined/
Adam Rice
2014/01/27 07:30:04
Done.
| |
| 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_ |
| OLD | NEW |