Chromium Code Reviews| Index: net/server/http_server.h |
| diff --git a/net/server/http_server.h b/net/server/http_server.h |
| index 78f6e42d8edaaee577143abd4e6c5946ed2b377a..b1e0dc2698000bb830253e792bd4925cc9816268 100644 |
| --- a/net/server/http_server.h |
| +++ b/net/server/http_server.h |
| @@ -70,11 +70,27 @@ private: |
| bool is_web_socket_; |
| std::string recv_data_; |
| int id_; |
| + bool use_hybi10_web_socket_; |
|
pfeldman
2011/07/28 09:32:47
We should flag legacy protocol use instead (use_hi
|
| DISALLOW_COPY_AND_ASSIGN(Connection); |
| }; |
| friend class Connection; |
| + bool WebSocketHandshakeHyBi10(Connection* connection, |
|
pfeldman
2011/07/28 09:32:47
Lets keep current version methods with no suffix (
|
| + const HttpServerRequestInfo& request); |
| + void AcceptWebSocketHyBi10(Connection* connection, |
| + const HttpServerRequestInfo& request); |
| + void SendOverWebSocketHyBi10(Connection* connection, const std::string& data); |
| + |
| + bool DidReadWebSocketHyBi10(Connection* connection, |
| + char* data, |
| + size_t length, |
| + std::string* message); |
| + |
| + void AcceptWebSocketHixie76(Connection* connection, |
| + const HttpServerRequestInfo& request); |
| + void SendOverWebSocketHixie76(Connection* connection, |
| + const std::string& data); |
| // ListenSocketDelegate |
| virtual void DidAccept(ListenSocket* server, ListenSocket* socket); |