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

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

Issue 10870080: Add SPDY request headers to DevTools. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Back to CL #6 Created 8 years, 3 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 | Annotate | Revision Log
« no previous file with comments | « net/spdy/spdy_websocket_stream.h ('k') | net/websockets/websocket_job.h » ('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 (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
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
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_
OLDNEW
« no previous file with comments | « net/spdy/spdy_websocket_stream.h ('k') | net/websockets/websocket_job.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698