OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_WEB_PREFERENCES_POPULATER_H_ | 5 #ifndef ANDROID_WEBVIEW_BROWSER_AW_WEB_PREFERENCES_POPULATER_H_ |
6 #define ANDROID_WEBVIEW_BROWSER_AW_WEB_PREFERENCES_POPULATER_H_ | 6 #define ANDROID_WEBVIEW_BROWSER_AW_WEB_PREFERENCES_POPULATER_H_ |
7 | 7 |
8 namespace content { | 8 namespace content { |
9 class WebContents; | 9 class WebContents; |
10 struct WebPreferences; | 10 struct WebPreferences; |
11 } | 11 } |
12 | 12 |
13 namespace android_webview { | 13 namespace android_webview { |
14 | 14 |
15 // Empty base class so this can be destroyed by AwContentBrowserClient. | 15 // Empty base class so this can be destroyed by AwContentBrowserClient. |
16 class AwWebPreferencesPopulater { | 16 class AwWebPreferencesPopulater { |
17 public: | 17 public: |
18 virtual ~AwWebPreferencesPopulater(); | 18 AwWebPreferencesPopulater() = default; |
| 19 ~AwWebPreferencesPopulater() = default; |
19 | 20 |
20 virtual void PopulateFor(content::WebContents* web_contents, | 21 void PopulateFor(content::WebContents* web_contents, |
21 content::WebPreferences* web_prefs) = 0; | 22 content::WebPreferences* web_prefs); |
22 }; | 23 }; |
23 | 24 |
24 } // namespace android_webview | 25 } // namespace android_webview |
25 | 26 |
26 #endif // ANDROID_WEBVIEW_BROWSER_AW_WEB_PREFERENCES_POPULATER_H_ | 27 #endif // ANDROID_WEBVIEW_BROWSER_AW_WEB_PREFERENCES_POPULATER_H_ |
OLD | NEW |