OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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_JNI_DEPENDENCY_FACTORY_H_ | 5 #ifndef ANDROID_WEBVIEW_BROWSER_JNI_DEPENDENCY_FACTORY_H_ |
6 #define ANDROID_WEBVIEW_BROWSER_JNI_DEPENDENCY_FACTORY_H_ | 6 #define ANDROID_WEBVIEW_BROWSER_JNI_DEPENDENCY_FACTORY_H_ |
7 | 7 |
8 namespace content { | 8 namespace content { |
9 class GeolocationPermissionContext; | 9 class GeolocationPermissionContext; |
10 class WebContents; | 10 class WebContents; |
11 class WebContentsViewDelegate; | 11 class WebContentsViewDelegate; |
12 } // namespace content | 12 } // namespace content |
13 | 13 |
14 namespace android_webview { | 14 namespace android_webview { |
15 | 15 |
16 class AwBrowserContext; | 16 class AwBrowserContext; |
17 class AwQuotaManagerBridge; | 17 class AwQuotaManagerBridge; |
| 18 class AwWebPreferencesPopulater; |
18 | 19 |
19 // Used to create instances of objects under native that are used in browser. | 20 // Used to create instances of objects under native that are used in browser. |
20 class JniDependencyFactory { | 21 class JniDependencyFactory { |
21 public: | 22 public: |
22 virtual ~JniDependencyFactory() {} | 23 virtual ~JniDependencyFactory() {} |
23 | 24 |
24 virtual AwQuotaManagerBridge* CreateAwQuotaManagerBridge( | 25 virtual AwQuotaManagerBridge* CreateAwQuotaManagerBridge( |
25 AwBrowserContext* browser_context) = 0; | 26 AwBrowserContext* browser_context) = 0; |
26 virtual content::GeolocationPermissionContext* CreateGeolocationPermission( | 27 virtual content::GeolocationPermissionContext* CreateGeolocationPermission( |
27 AwBrowserContext* browser_context) = 0; | 28 AwBrowserContext* browser_context) = 0; |
28 virtual content::WebContentsViewDelegate* CreateViewDelegate( | 29 virtual content::WebContentsViewDelegate* CreateViewDelegate( |
29 content::WebContents* web_contents) = 0; | 30 content::WebContents* web_contents) = 0; |
| 31 virtual AwWebPreferencesPopulater* CreateWebPreferencesPopulater() = 0; |
30 }; | 32 }; |
31 | 33 |
32 } // namespace android_webview | 34 } // namespace android_webview |
33 | 35 |
34 #endif // ANDROID_WEBVIEW_BROWSER_JNI_DEPENDENCY_FACTORY_H_ | 36 #endif // ANDROID_WEBVIEW_BROWSER_JNI_DEPENDENCY_FACTORY_H_ |
OLD | NEW |