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

Side by Side Diff: net/tools/dump_cache/url_to_filename_encoder.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
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 <stdlib.h> 5 #include <stdlib.h>
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/string_util.h" 8 #include "base/strings/string_util.h"
9 #include "net/base/net_util.h" 9 #include "net/base/net_util.h"
10 #include "net/tools/dump_cache/url_to_filename_encoder.h" 10 #include "net/tools/dump_cache/url_to_filename_encoder.h"
11 11
12 using std::string; 12 using std::string;
13 13
14 namespace { 14 namespace {
15 15
16 // Returns 1 if buf is prefixed by "num_digits" of hex digits 16 // Returns 1 if buf is prefixed by "num_digits" of hex digits
17 // Teturns 0 otherwise. 17 // Teturns 0 otherwise.
18 // The function checks for '\0' for string termination. 18 // The function checks for '\0' for string termination.
(...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after
283 char slash = '/'; 283 char slash = '/';
284 #endif 284 #endif
285 output.append(&slash, 1); 285 output.append(&slash, 1);
286 last_slash = index; 286 last_slash = index;
287 } 287 }
288 } 288 }
289 return output; 289 return output;
290 } 290 }
291 291
292 } // namespace net 292 } // namespace net
OLDNEW
« no previous file with comments | « net/tools/dump_cache/url_to_filename_encoder.h ('k') | net/tools/dump_cache/url_to_filename_encoder_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698