| 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 CONTENT_COMMON_WEBSOCKET_H_ | 5 #ifndef CONTENT_COMMON_WEBSOCKET_H_ |
| 6 #define CONTENT_COMMON_WEBSOCKET_H_ | 6 #define CONTENT_COMMON_WEBSOCKET_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <utility> | 9 #include <utility> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 // Opening handshake request information which will be shown in the inspector. | 24 // Opening handshake request information which will be shown in the inspector. |
| 25 // All string data should be encoded to ASCII in the browser process. | 25 // All string data should be encoded to ASCII in the browser process. |
| 26 struct WebSocketHandshakeRequest { | 26 struct WebSocketHandshakeRequest { |
| 27 WebSocketHandshakeRequest(); | 27 WebSocketHandshakeRequest(); |
| 28 ~WebSocketHandshakeRequest(); | 28 ~WebSocketHandshakeRequest(); |
| 29 | 29 |
| 30 // The request URL | 30 // The request URL |
| 31 GURL url; | 31 GURL url; |
| 32 // Additional HTTP request headers | 32 // Additional HTTP request headers |
| 33 std::vector<std::pair<std::string, std::string> > headers; | 33 std::vector<std::pair<std::string, std::string> > headers; |
| 34 // HTTP request headers raw string |
| 35 std::string headers_text; |
| 34 // The time that this request is sent | 36 // The time that this request is sent |
| 35 base::Time request_time; | 37 base::Time request_time; |
| 36 }; | 38 }; |
| 37 | 39 |
| 38 // Opening handshake response information which will be shown in the inspector. | 40 // Opening handshake response information which will be shown in the inspector. |
| 39 // All string data should be encoded to ASCII in the browser process. | 41 // All string data should be encoded to ASCII in the browser process. |
| 40 struct WebSocketHandshakeResponse { | 42 struct WebSocketHandshakeResponse { |
| 41 WebSocketHandshakeResponse(); | 43 WebSocketHandshakeResponse(); |
| 42 ~WebSocketHandshakeResponse(); | 44 ~WebSocketHandshakeResponse(); |
| 43 | 45 |
| 44 // The request URL | 46 // The request URL |
| 45 GURL url; | 47 GURL url; |
| 46 // HTTP status code | 48 // HTTP status code |
| 47 int status_code; | 49 int status_code; |
| 48 // HTTP status text | 50 // HTTP status text |
| 49 std::string status_text; | 51 std::string status_text; |
| 50 // Additional HTTP response headers | 52 // Additional HTTP response headers |
| 51 std::vector<std::pair<std::string, std::string> > headers; | 53 std::vector<std::pair<std::string, std::string> > headers; |
| 54 // HTTP response headers raw string |
| 55 std::string headers_text; |
| 52 // The time that this response arrives | 56 // The time that this response arrives |
| 53 base::Time response_time; | 57 base::Time response_time; |
| 54 }; | 58 }; |
| 55 | 59 |
| 56 } // namespace content | 60 } // namespace content |
| 57 | 61 |
| 58 #endif // CONTENT_COMMON_WEBSOCKET_H_ | 62 #endif // CONTENT_COMMON_WEBSOCKET_H_ |
| OLD | NEW |