| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 #ifndef URL_URL_CANON_ICU_H_ | 5 #ifndef URL_URL_CANON_ICU_H_ |
| 6 #define URL_URL_CANON_ICU_H_ | 6 #define URL_URL_CANON_ICU_H_ |
| 7 | 7 |
| 8 // ICU integration functions. | 8 // ICU integration functions. |
| 9 | 9 |
| 10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| 11 #include "base/strings/string16.h" |
| 12 #include "unicode/ucnv_err.h" |
| 11 #include "url/url_canon.h" | 13 #include "url/url_canon.h" |
| 12 #include "url/url_export.h" | 14 #include "url/url_export.h" |
| 13 | 15 |
| 14 typedef struct UConverter UConverter; | 16 typedef struct UConverter UConverter; |
| 15 | 17 |
| 16 namespace url { | 18 namespace url { |
| 17 | 19 |
| 18 // An implementation of CharsetConverter that implementations can use to | 20 // An implementation of CharsetConverter that implementations can use to |
| 19 // interface the canonicalizer with ICU's conversion routines. | 21 // interface the canonicalizer with ICU's conversion routines. |
| 20 class URL_EXPORT ICUCharsetConverter : public CharsetConverter { | 22 class URL_EXPORT ICUCharsetConverter : public CharsetConverter { |
| (...skipping 10 matching lines...) Expand all Loading... |
| 31 CanonOutput* output) override; | 33 CanonOutput* output) override; |
| 32 | 34 |
| 33 private: | 35 private: |
| 34 // The ICU converter, not owned by this class. | 36 // The ICU converter, not owned by this class. |
| 35 UConverter* converter_; | 37 UConverter* converter_; |
| 36 }; | 38 }; |
| 37 | 39 |
| 38 } // namespace url | 40 } // namespace url |
| 39 | 41 |
| 40 #endif // URL_URL_CANON_ICU_H_ | 42 #endif // URL_URL_CANON_ICU_H_ |
| OLD | NEW |