| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |