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