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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
45 WebSocketHandshakeResponse(); | 45 WebSocketHandshakeResponse(); |
46 ~WebSocketHandshakeResponse(); | 46 ~WebSocketHandshakeResponse(); |
47 | 47 |
48 // The request URL | 48 // The request URL |
49 GURL url; | 49 GURL url; |
50 // HTTP status code | 50 // HTTP status code |
51 int status_code; | 51 int status_code; |
52 // HTTP status text | 52 // HTTP status text |
53 std::string status_text; | 53 std::string status_text; |
54 // Additional HTTP response headers | 54 // Additional HTTP response headers |
55 std::vector<std::pair<std::string, std::string> > headers; | 55 base::StringPairs headers; |
56 // HTTP response headers raw string | 56 // HTTP response headers raw string |
57 std::string headers_text; | 57 std::string headers_text; |
58 // The time that this response arrives | 58 // The time that this response arrives |
59 base::Time response_time; | 59 base::Time response_time; |
60 }; | 60 }; |
61 | 61 |
62 } // namespace content | 62 } // namespace content |
63 | 63 |
64 #endif // CONTENT_COMMON_WEBSOCKET_H_ | 64 #endif // CONTENT_COMMON_WEBSOCKET_H_ |
OLD | NEW |