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

Side by Side Diff: net/websockets/websocket_extension.cc

Issue 2944833002: cpplint fixes for //net/websockets (Closed)
Patch Set: Created 3 years, 6 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
« no previous file with comments | « net/websockets/websocket_deflate_stream_fuzzer.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « net/websockets/websocket_deflate_stream_fuzzer.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698