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

Side by Side Diff: trunk/src/url/url_canon_icu.h

Issue 15848009: Revert 203025 "Make the copy of GURL in src/url buildable as a c..." (Closed) Base URL: svn://svn.chromium.org/chrome/
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
« no previous file with comments | « trunk/src/url/url_canon.h ('k') | trunk/src/url/url_canon_internal.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 "url/url_canon.h" 10 #include "url/url_canon.h"
11 #include "url/url_export.h"
12 11
13 typedef struct UConverter UConverter; 12 typedef struct UConverter UConverter;
14 13
15 namespace url_canon { 14 namespace url_canon {
16 15
17 // An implementation of CharsetConverter that implementations can use to 16 // An implementation of CharsetConverter that implementations can use to
18 // interface the canonicalizer with ICU's conversion routines. 17 // interface the canonicalizer with ICU's conversion routines.
19 class URL_EXPORT ICUCharsetConverter : public CharsetConverter { 18 class ICUCharsetConverter : public CharsetConverter {
20 public: 19 public:
21 // Constructs a converter using an already-existing ICU character set 20 // Constructs a converter using an already-existing ICU character set
22 // converter. This converter is NOT owned by this object; the lifetime must 21 // converter. This converter is NOT owned by this object; the lifetime must
23 // be managed by the creator such that it is alive as long as this is. 22 // be managed by the creator such that it is alive as long as this is.
24 ICUCharsetConverter(UConverter* converter); 23 ICUCharsetConverter(UConverter* converter);
25 24
26 virtual ~ICUCharsetConverter(); 25 virtual ~ICUCharsetConverter();
27 26
28 virtual void ConvertFromUTF16(const char16* input, 27 virtual void ConvertFromUTF16(const char16* input,
29 int input_len, 28 int input_len,
30 CanonOutput* output); 29 CanonOutput* output);
31 30
32 private: 31 private:
33 // The ICU converter, not owned by this class. 32 // The ICU converter, not owned by this class.
34 UConverter* converter_; 33 UConverter* converter_;
35 }; 34 };
36 35
37 } // namespace url_canon 36 } // namespace url_canon
38 37
39 #endif // URL_URL_CANON_ICU_H_ 38 #endif // URL_URL_CANON_ICU_H_
OLDNEW
« no previous file with comments | « trunk/src/url/url_canon.h ('k') | trunk/src/url/url_canon_internal.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698