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

Side by Side Diff: base/i18n/icu_util.h

Issue 1647803004: Move base to DEPS (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 4 years, 10 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
« no previous file with comments | « base/i18n/icu_string_conversions_unittest.cc ('k') | base/i18n/icu_util.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef BASE_I18N_ICU_UTIL_H_
6 #define BASE_I18N_ICU_UTIL_H_
7
8 #include "base/files/memory_mapped_file.h"
9 #include "base/i18n/base_i18n_export.h"
10 #include "build/build_config.h"
11
12 namespace base {
13 namespace i18n {
14
15 #if !defined(OS_NACL)
16 // Call this function to load ICU's data tables for the current process. This
17 // function should be called before ICU is used.
18 BASE_I18N_EXPORT bool InitializeICU();
19
20 #if ICU_UTIL_DATA_IMPL == ICU_UTIL_DATA_FILE
21 // Returns the PlatformFile and Region that was initialized by InitializeICU().
22 // Use with InitializeICUWithFileDescriptor().
23 BASE_I18N_EXPORT PlatformFile
24 GetIcuDataFileHandle(MemoryMappedFile::Region* out_region);
25
26 // Android and html_viewer use a file descriptor passed by browser process to
27 // initialize ICU in render processes.
28 BASE_I18N_EXPORT bool InitializeICUWithFileDescriptor(
29 PlatformFile data_fd,
30 const MemoryMappedFile::Region& data_region);
31 #endif // ICU_UTIL_DATA_IMPL == ICU_UTIL_DATA_FILE
32 #endif // !defined(OS_NACL)
33
34 // In a test binary, the call above might occur twice.
35 BASE_I18N_EXPORT void AllowMultipleInitializeCallsForTesting();
36
37 } // namespace i18n
38 } // namespace base
39
40 #endif // BASE_I18N_ICU_UTIL_H_
OLDNEW
« no previous file with comments | « base/i18n/icu_string_conversions_unittest.cc ('k') | base/i18n/icu_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698