OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef ANDROID_WEBVIEW_BROWSER_JNI_DEPENDENCY_FACTORY_H_ |
| 6 #define ANDROID_WEBVIEW_BROWSER_JNI_DEPENDENCY_FACTORY_H_ |
| 7 |
| 8 namespace content { |
| 9 class GeolocationPermissionContext; |
| 10 class WebContents; |
| 11 class WebContentsViewDelegate; |
| 12 } // namespace content |
| 13 |
| 14 namespace android_webview { |
| 15 |
| 16 class AwBrowserContext; |
| 17 class AwQuotaManagerBridge; |
| 18 |
| 19 // Used to create instances of objects under native that are used in browser. |
| 20 class JniDependencyFactory { |
| 21 public: |
| 22 virtual ~JniDependencyFactory() {} |
| 23 |
| 24 virtual AwQuotaManagerBridge* CreateAwQuotaManagerBridge( |
| 25 AwBrowserContext* browser_context) = 0; |
| 26 virtual content::GeolocationPermissionContext* CreateGeolocationPermission( |
| 27 AwBrowserContext* browser_context) = 0; |
| 28 virtual content::WebContentsViewDelegate* CreateViewDelegate( |
| 29 content::WebContents* web_contents) = 0; |
| 30 }; |
| 31 |
| 32 } // namespace android_webview |
| 33 |
| 34 #endif // ANDROID_WEBVIEW_BROWSER_JNI_DEPENDENCY_FACTORY_H_ |
OLD | NEW |