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

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

Issue 317833006: [ICU] Avoid reading ICU data files in render process. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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 | « no previous file | base/i18n/icu_util.cc » ('j') | base/i18n/icu_util.cc » ('J')
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/i18n/base_i18n_export.h" 8 #include "base/i18n/base_i18n_export.h"
9 9
10 namespace base { 10 namespace base {
11 namespace i18n { 11 namespace i18n {
12 12
13 // Call this function to load ICU's data tables for the current process. This 13 // Call this function to load ICU's data tables for the current process. This
14 // function should be called before ICU is used. 14 // function should be called before ICU is used.
15 BASE_I18N_EXPORT bool InitializeICU(); 15 BASE_I18N_EXPORT bool InitializeICU();
16 16
17 #if defined(OS_ANDROID)
18 // Android uses a file descriptor passed by browser process to initialize ICU
19 // in render processes.
20 BASE_I18N_EXPORT bool InitializeICU(int data_fd);
21 #endif
22
17 // In a test binary, the call above might occur twice. 23 // In a test binary, the call above might occur twice.
18 BASE_I18N_EXPORT void AllowMultipleInitializeCallsForTesting(); 24 BASE_I18N_EXPORT void AllowMultipleInitializeCallsForTesting();
19 25
20 } // namespace i18n 26 } // namespace i18n
21 } // namespace base 27 } // namespace base
22 28
23 #endif // BASE_I18N_ICU_UTIL_H_ 29 #endif // BASE_I18N_ICU_UTIL_H_
OLDNEW
« no previous file with comments | « no previous file | base/i18n/icu_util.cc » ('j') | base/i18n/icu_util.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698