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. | |
15 class AwLocaleManager { | 14 class AwLocaleManager { |
16 public: | 15 public: |
17 AwLocaleManager() {} | 16 AwLocaleManager() = default; |
18 virtual ~AwLocaleManager() {} | 17 ~AwLocaleManager() = default; |
19 | 18 |
20 virtual std::string GetLocale() = 0; | 19 std::string GetLocale(); |
21 | 20 |
22 virtual std::string GetLocaleList() = 0; | 21 std::string GetLocaleList(); |
23 | 22 |
24 private: | 23 private: |
25 DISALLOW_COPY_AND_ASSIGN(AwLocaleManager); | 24 DISALLOW_COPY_AND_ASSIGN(AwLocaleManager); |
26 }; | 25 }; |
27 | 26 |
28 } // namespace android_webview | 27 } // namespace android_webview |
29 | 28 |
30 #endif // ANDROID_WEBVIEW_BROWSER_AW_LOCALE_MANAGER_H_ | 29 #endif // ANDROID_WEBVIEW_BROWSER_AW_LOCALE_MANAGER_H_ |
OLD | NEW |