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

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

Issue 851503003: Update from https://crrev.com/311076 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 11 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/build_utf8_validator_tables.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
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 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 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 BASE_I18N_ICU_UTIL_H_ 5 #ifndef BASE_I18N_ICU_UTIL_H_
6 #define BASE_I18N_ICU_UTIL_H_ 6 #define BASE_I18N_ICU_UTIL_H_
7 7
8 #include "base/files/memory_mapped_file.h"
9 #include "base/i18n/base_i18n_export.h"
8 #include "build/build_config.h" 10 #include "build/build_config.h"
9 #include "base/i18n/base_i18n_export.h"
10 11
11 namespace base { 12 namespace base {
12 namespace i18n { 13 namespace i18n {
13 14
15 BASE_I18N_EXPORT extern const char kIcuDataFileName[];
16
14 // Call this function to load ICU's data tables for the current process. This 17 // Call this function to load ICU's data tables for the current process. This
15 // function should be called before ICU is used. 18 // function should be called before ICU is used.
16 BASE_I18N_EXPORT bool InitializeICU(); 19 BASE_I18N_EXPORT bool InitializeICU();
17 20
18 #if defined(OS_ANDROID) 21 #if defined(OS_ANDROID)
19 // Android uses a file descriptor passed by browser process to initialize ICU 22 // Android uses a file descriptor passed by browser process to initialize ICU
20 // in render processes. 23 // in render processes.
21 BASE_I18N_EXPORT bool InitializeICUWithFileDescriptor(int data_fd); 24 BASE_I18N_EXPORT bool InitializeICUWithFileDescriptor(
25 int data_fd,
26 base::MemoryMappedFile::Region data_region);
22 #endif 27 #endif
23 28
24 // In a test binary, the call above might occur twice. 29 // In a test binary, the call above might occur twice.
25 BASE_I18N_EXPORT void AllowMultipleInitializeCallsForTesting(); 30 BASE_I18N_EXPORT void AllowMultipleInitializeCallsForTesting();
26 31
27 } // namespace i18n 32 } // namespace i18n
28 } // namespace base 33 } // namespace base
29 34
30 #endif // BASE_I18N_ICU_UTIL_H_ 35 #endif // BASE_I18N_ICU_UTIL_H_
OLDNEW
« no previous file with comments | « base/i18n/build_utf8_validator_tables.cc ('k') | base/i18n/icu_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698