| 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 declares a helper class for selecting a supported language from a | 5 // This file declares a helper class for selecting a supported language from a |
| 6 // set of candidates. | 6 // set of candidates. |
| 7 | 7 |
| 8 #ifndef CHROME_INSTALLER_UTIL_LANGUAGE_SELECTOR_H_ | 8 #ifndef CHROME_INSTALLER_UTIL_LANGUAGE_SELECTOR_H_ |
| 9 #define CHROME_INSTALLER_UTIL_LANGUAGE_SELECTOR_H_ | 9 #define CHROME_INSTALLER_UTIL_LANGUAGE_SELECTOR_H_ |
| 10 | 10 |
| 11 #include <string> | 11 #include <string> |
| 12 #include <vector> | 12 #include <vector> |
| 13 | 13 |
| 14 #include "base/basictypes.h" | 14 #include "base/macros.h" |
| 15 | 15 |
| 16 namespace installer { | 16 namespace installer { |
| 17 | 17 |
| 18 // A helper class for selecting a supported language from a set of candidates. | 18 // A helper class for selecting a supported language from a set of candidates. |
| 19 // By default, the candidates are retrieved from the operating system. | 19 // By default, the candidates are retrieved from the operating system. |
| 20 class LanguageSelector { | 20 class LanguageSelector { |
| 21 public: | 21 public: |
| 22 // Default constructor will select from the set of languages supported by the | 22 // Default constructor will select from the set of languages supported by the |
| 23 // operating system. | 23 // operating system. |
| 24 LanguageSelector(); | 24 LanguageSelector(); |
| (...skipping 25 matching lines...) Expand all Loading... |
| 50 | 50 |
| 51 std::wstring matched_candidate_; | 51 std::wstring matched_candidate_; |
| 52 int offset_; | 52 int offset_; |
| 53 | 53 |
| 54 DISALLOW_COPY_AND_ASSIGN(LanguageSelector); | 54 DISALLOW_COPY_AND_ASSIGN(LanguageSelector); |
| 55 }; | 55 }; |
| 56 | 56 |
| 57 } // namespace installer. | 57 } // namespace installer. |
| 58 | 58 |
| 59 #endif // CHROME_INSTALLER_UTIL_LANGUAGE_SELECTOR_H_ | 59 #endif // CHROME_INSTALLER_UTIL_LANGUAGE_SELECTOR_H_ |
| OLD | NEW |