| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 // This file contains utility functions for dealing with localized | 5 // This file contains utility functions for dealing with localized |
| 6 // content. | 6 // content. |
| 7 | 7 |
| 8 #ifndef APP_L10N_UTIL_H_ | 8 #ifndef APP_L10N_UTIL_H_ |
| 9 #define APP_L10N_UTIL_H_ | 9 #define APP_L10N_UTIL_H_ |
| 10 #pragma once | 10 #pragma once |
| 11 | 11 |
| 12 #include <algorithm> | 12 #include <algorithm> |
| 13 #include <functional> | 13 #include <functional> |
| 14 #include <string> | 14 #include <string> |
| 15 #include <vector> | 15 #include <vector> |
| 16 | 16 |
| 17 #include "build/build_config.h" | 17 #include "build/build_config.h" |
| 18 | 18 |
| 19 #include "base/basictypes.h" | 19 #include "base/basictypes.h" |
| 20 #include "base/logging.h" | |
| 21 #include "base/scoped_ptr.h" | 20 #include "base/scoped_ptr.h" |
| 22 #include "base/string16.h" | 21 #include "base/string16.h" |
| 23 #include "base/string_util.h" | 22 #include "base/string_util.h" |
| 24 | 23 |
| 25 #if defined(OS_MACOSX) | 24 #if defined(OS_MACOSX) |
| 26 #include "app/l10n_util_mac.h" | 25 #include "app/l10n_util_mac.h" |
| 27 #endif // OS_MACOSX | 26 #endif // OS_MACOSX |
| 28 | 27 |
| 29 namespace l10n_util { | 28 namespace l10n_util { |
| 30 | 29 |
| (...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 185 const std::vector<std::string>& GetAvailableLocales(); | 184 const std::vector<std::string>& GetAvailableLocales(); |
| 186 | 185 |
| 187 // Returns a vector of locale codes usable for accept-languages. | 186 // Returns a vector of locale codes usable for accept-languages. |
| 188 void GetAcceptLanguagesForLocale(const std::string& display_locale, | 187 void GetAcceptLanguagesForLocale(const std::string& display_locale, |
| 189 std::vector<std::string>* locale_codes); | 188 std::vector<std::string>* locale_codes); |
| 190 | 189 |
| 191 | 190 |
| 192 } // namespace l10n_util | 191 } // namespace l10n_util |
| 193 | 192 |
| 194 #endif // APP_L10N_UTIL_H_ | 193 #endif // APP_L10N_UTIL_H_ |
| OLD | NEW |