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

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

Issue 16652007: Use a direct include of strings headers in net/test/, net/third_party/, net/tools/, net/udp/, net/u… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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 | Annotate | Revision Log
« no previous file with comments | « net/websockets/websocket_job_spdy3_unittest.cc ('k') | net/websockets/websocket_throttle.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_net_log_params.h" 5 #include "net/websockets/websocket_net_log_params.h"
6 6
7 #include "base/stringprintf.h" 7 #include "base/strings/stringprintf.h"
8 #include "base/values.h" 8 #include "base/values.h"
9 9
10 namespace net { 10 namespace net {
11 11
12 Value* NetLogWebSocketHandshakeCallback(const std::string* headers, 12 Value* NetLogWebSocketHandshakeCallback(const std::string* headers,
13 NetLog::LogLevel /* log_level */) { 13 NetLog::LogLevel /* log_level */) {
14 DictionaryValue* dict = new DictionaryValue(); 14 DictionaryValue* dict = new DictionaryValue();
15 ListValue* header_list = new ListValue(); 15 ListValue* header_list = new ListValue();
16 16
17 size_t last = 0; 17 size_t last = 0;
(...skipping 21 matching lines...) Expand all
39 } else { 39 } else {
40 ++pos; 40 ++pos;
41 } 41 }
42 } 42 }
43 43
44 dict->Set("headers", header_list); 44 dict->Set("headers", header_list);
45 return dict; 45 return dict;
46 } 46 }
47 47
48 } // namespace net 48 } // namespace net
OLDNEW
« no previous file with comments | « net/websockets/websocket_job_spdy3_unittest.cc ('k') | net/websockets/websocket_throttle.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698