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 NET_WEBSOCKETS_WEBSOCKET_EXTENSION_PARSER_H_ | 5 #ifndef NET_WEBSOCKETS_WEBSOCKET_EXTENSION_PARSER_H_ |
6 #define NET_WEBSOCKETS_WEBSOCKET_EXTENSION_PARSER_H_ | 6 #define NET_WEBSOCKETS_WEBSOCKET_EXTENSION_PARSER_H_ |
7 | 7 |
| 8 #include <stddef.h> |
| 9 |
8 #include <string> | 10 #include <string> |
9 #include <vector> | 11 #include <vector> |
10 | 12 |
11 #include "base/compiler_specific.h" | 13 #include "base/compiler_specific.h" |
| 14 #include "base/macros.h" |
12 #include "base/strings/string_piece.h" | 15 #include "base/strings/string_piece.h" |
13 #include "net/base/net_export.h" | 16 #include "net/base/net_export.h" |
14 #include "net/websockets/websocket_extension.h" | 17 #include "net/websockets/websocket_extension.h" |
15 | 18 |
16 namespace net { | 19 namespace net { |
17 | 20 |
18 class NET_EXPORT_PRIVATE WebSocketExtensionParser { | 21 class NET_EXPORT_PRIVATE WebSocketExtensionParser { |
19 public: | 22 public: |
20 WebSocketExtensionParser(); | 23 WebSocketExtensionParser(); |
21 ~WebSocketExtensionParser(); | 24 ~WebSocketExtensionParser(); |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 // The pointer of the end of the input string. | 59 // The pointer of the end of the input string. |
57 const char* end_; | 60 const char* end_; |
58 std::vector<WebSocketExtension> extensions_; | 61 std::vector<WebSocketExtension> extensions_; |
59 | 62 |
60 DISALLOW_COPY_AND_ASSIGN(WebSocketExtensionParser); | 63 DISALLOW_COPY_AND_ASSIGN(WebSocketExtensionParser); |
61 }; | 64 }; |
62 | 65 |
63 } // namespace net | 66 } // namespace net |
64 | 67 |
65 #endif // NET_WEBSOCKETS_WEBSOCKET_EXTENSION_PARSER_H_ | 68 #endif // NET_WEBSOCKETS_WEBSOCKET_EXTENSION_PARSER_H_ |
OLD | NEW |