Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 ANDROID_WEBVIEW_BROWSER_AW_LOCALE_MANAGER_H_ | 5 #ifndef ANDROID_WEBVIEW_BROWSER_AW_LOCALE_MANAGER_H_ |
| 6 #define ANDROID_WEBVIEW_BROWSER_AW_LOCALE_MANAGER_H_ | 6 #define ANDROID_WEBVIEW_BROWSER_AW_LOCALE_MANAGER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| 11 | 11 |
| 12 namespace android_webview { | 12 namespace android_webview { |
| 13 | 13 |
| 14 // Empty base class so this can be destroyed by AwContentBrowserClient. | 14 // Empty base class so this can be destroyed by AwContentBrowserClient. |
| 15 class AwLocaleManager { | 15 class AwLocaleManager { |
| 16 public: | 16 public: |
| 17 AwLocaleManager() {} | 17 AwLocaleManager() {} |
| 18 virtual ~AwLocaleManager() {} | 18 virtual ~AwLocaleManager() {} |
| 19 | 19 |
| 20 virtual std::string GetLocale() = 0; | 20 virtual std::string GetLocale() = 0; |
| 21 | 21 |
| 22 virtual std::string GetLocales() = 0; | |
|
Bernhard Bauer
2016/11/16 16:20:07
Maybe name this GetLocaleList(), so it's consisten
Yirui Huang
2016/11/17 02:12:53
Done.
| |
| 23 | |
| 22 private: | 24 private: |
| 23 DISALLOW_COPY_AND_ASSIGN(AwLocaleManager); | 25 DISALLOW_COPY_AND_ASSIGN(AwLocaleManager); |
| 24 }; | 26 }; |
| 25 | 27 |
| 26 } // namespace android_webview | 28 } // namespace android_webview |
| 27 | 29 |
| 28 #endif // ANDROID_WEBVIEW_BROWSER_AW_LOCALE_MANAGER_H_ | 30 #endif // ANDROID_WEBVIEW_BROWSER_AW_LOCALE_MANAGER_H_ |
| OLD | NEW |