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

Side by Side Diff: net/tools/dump_cache/url_to_filename_encoder.cc

Issue 6317016: Change UTF8ToUTF16 to accept const StringPiece&. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 9 years, 11 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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>
6
5 #include "base/logging.h" 7 #include "base/logging.h"
6 #include "base/string_util.h" 8 #include "base/string_util.h"
7 #include "net/base/net_util.h" 9 #include "net/base/net_util.h"
8 #include "net/tools/dump_cache/url_to_filename_encoder.h" 10 #include "net/tools/dump_cache/url_to_filename_encoder.h"
9 11
10 using std::string; 12 using std::string;
11 13
12 namespace { 14 namespace {
13 15
14 // 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
(...skipping 268 matching lines...) Expand 10 before | Expand all | Expand 10 after
283 char slash = '/'; 285 char slash = '/';
284 #endif 286 #endif
285 output.append(&slash, 1); 287 output.append(&slash, 1);
286 last_slash = index; 288 last_slash = index;
287 } 289 }
288 } 290 }
289 return output; 291 return output;
290 } 292 }
291 293
292 } // namespace net 294 } // namespace net
OLDNEW
« no previous file with comments | « net/tools/dnssec_chain_verify/dnssec_chain_verify.cc ('k') | tools/memory_watcher/memory_watcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698