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 #include "net/websockets/websocket_extension.h" | 5 #include "net/websockets/websocket_extension.h" |
6 | 6 |
7 #include <map> | 7 #include <map> |
8 #include <string> | 8 #include <string> |
| 9 #include <utility> |
9 | 10 |
10 #include "base/logging.h" | 11 #include "base/logging.h" |
11 #include "net/http/http_util.h" | 12 #include "net/http/http_util.h" |
12 | 13 |
13 namespace net { | 14 namespace net { |
14 | 15 |
15 WebSocketExtension::Parameter::Parameter(const std::string& name) | 16 WebSocketExtension::Parameter::Parameter(const std::string& name) |
16 : name_(name) {} | 17 : name_(name) {} |
17 | 18 |
18 WebSocketExtension::Parameter::Parameter(const std::string& name, | 19 WebSocketExtension::Parameter::Parameter(const std::string& name, |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 continue; | 64 continue; |
64 | 65 |
65 // |extension-param| must be a token and we don't need to quote it. | 66 // |extension-param| must be a token and we don't need to quote it. |
66 DCHECK(HttpUtil::IsToken(param.value())); | 67 DCHECK(HttpUtil::IsToken(param.value())); |
67 result += "=" + param.value(); | 68 result += "=" + param.value(); |
68 } | 69 } |
69 return result; | 70 return result; |
70 } | 71 } |
71 | 72 |
72 } // namespace net | 73 } // namespace net |
OLD | NEW |