OLD | NEW |
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/base/escape.h" | 5 #include "net/base/escape.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 | 8 |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
11 #include "base/string_piece.h" | |
12 #include "base/string_util.h" | 11 #include "base/string_util.h" |
| 12 #include "base/strings/string_piece.h" |
13 #include "base/strings/utf_offset_string_conversions.h" | 13 #include "base/strings/utf_offset_string_conversions.h" |
14 #include "base/utf_string_conversions.h" | 14 #include "base/utf_string_conversions.h" |
15 | 15 |
16 namespace net { | 16 namespace net { |
17 | 17 |
18 namespace { | 18 namespace { |
19 | 19 |
20 const char kHexString[] = "0123456789ABCDEF"; | 20 const char kHexString[] = "0123456789ABCDEF"; |
21 inline char IntToHex(int i) { | 21 inline char IntToHex(int i) { |
22 DCHECK_GE(i, 0) << i << " not a hex value"; | 22 DCHECK_GE(i, 0) << i << " not a hex value"; |
(...skipping 360 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
383 return; | 383 return; |
384 } | 384 } |
385 adjusted_offset -= 2; | 385 adjusted_offset -= 2; |
386 } | 386 } |
387 offset = adjusted_offset; | 387 offset = adjusted_offset; |
388 } | 388 } |
389 | 389 |
390 } // namespace internal | 390 } // namespace internal |
391 | 391 |
392 } // namespace net | 392 } // namespace net |
OLD | NEW |