| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 // WebSocketHandshake*Handler handles WebSocket handshake request message | 5 // WebSocketHandshake*Handler handles WebSocket handshake request message |
| 6 // from WebKit renderer process, and WebSocket handshake response message | 6 // from WebKit renderer process, and WebSocket handshake response message |
| 7 // from WebSocket server. | 7 // from WebSocket server. |
| 8 // It modifies messages for the following reason: | 8 // It modifies messages for the following reason: |
| 9 // - We don't trust WebKit renderer process, so we'll not expose HttpOnly | 9 // - We don't trust WebKit renderer process, so we'll not expose HttpOnly |
| 10 // cookies to the renderer process, so handles HttpOnly cookies in | 10 // cookies to the renderer process, so handles HttpOnly cookies in |
| (...skipping 18 matching lines...) Expand all Loading... |
| 29 #define NET_WEBSOCKETS_WEBSOCKET_HANDSHAKE_HANDLER_H_ | 29 #define NET_WEBSOCKETS_WEBSOCKET_HANDSHAKE_HANDLER_H_ |
| 30 | 30 |
| 31 #include <string> | 31 #include <string> |
| 32 #include <vector> | 32 #include <vector> |
| 33 | 33 |
| 34 #include "base/memory/ref_counted.h" | 34 #include "base/memory/ref_counted.h" |
| 35 #include "net/base/net_export.h" | 35 #include "net/base/net_export.h" |
| 36 #include "net/http/http_request_info.h" | 36 #include "net/http/http_request_info.h" |
| 37 #include "net/http/http_response_info.h" | 37 #include "net/http/http_response_info.h" |
| 38 #include "net/spdy/spdy_framer.h" | 38 #include "net/spdy/spdy_framer.h" |
| 39 #include "net/spdy/spdy_header_block.h" |
| 39 | 40 |
| 40 namespace net { | 41 namespace net { |
| 41 | 42 |
| 42 class NET_EXPORT_PRIVATE WebSocketHandshakeRequestHandler { | 43 class NET_EXPORT_PRIVATE WebSocketHandshakeRequestHandler { |
| 43 public: | 44 public: |
| 44 WebSocketHandshakeRequestHandler(); | 45 WebSocketHandshakeRequestHandler(); |
| 45 ~WebSocketHandshakeRequestHandler() {} | 46 ~WebSocketHandshakeRequestHandler() {} |
| 46 | 47 |
| 47 // Parses WebSocket handshake request from renderer process. | 48 // Parses WebSocket handshake request from renderer process. |
| 48 // It assumes a WebSocket handshake request message is given at once, and | 49 // It assumes a WebSocket handshake request message is given at once, and |
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 148 std::string header_separator_; | 149 std::string header_separator_; |
| 149 std::string key_; | 150 std::string key_; |
| 150 int protocol_version_; | 151 int protocol_version_; |
| 151 | 152 |
| 152 DISALLOW_COPY_AND_ASSIGN(WebSocketHandshakeResponseHandler); | 153 DISALLOW_COPY_AND_ASSIGN(WebSocketHandshakeResponseHandler); |
| 153 }; | 154 }; |
| 154 | 155 |
| 155 } // namespace net | 156 } // namespace net |
| 156 | 157 |
| 157 #endif // NET_WEBSOCKETS_WEBSOCKET_HANDSHAKE_HANDLER_H_ | 158 #endif // NET_WEBSOCKETS_WEBSOCKET_HANDSHAKE_HANDLER_H_ |
| OLD | NEW |