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 #include "base/memory/ref_counted.h" | 8 #include "base/memory/ref_counted.h" |
9 | 9 |
10 namespace content { | 10 namespace content { |
11 class ExternalVideoSurfaceContainer; | 11 class ExternalVideoSurfaceContainer; |
12 class GeolocationPermissionContext; | |
13 class WebContents; | 12 class WebContents; |
14 class WebContentsViewDelegate; | 13 class WebContentsViewDelegate; |
15 } // namespace content | 14 } // namespace content |
16 | 15 |
17 namespace android_webview { | 16 namespace android_webview { |
18 | 17 |
19 class AwBrowserContext; | 18 class AwBrowserContext; |
20 class AwQuotaManagerBridge; | 19 class AwQuotaManagerBridge; |
21 class AwWebPreferencesPopulater; | 20 class AwWebPreferencesPopulater; |
22 | 21 |
23 // Used to create instances of objects under native that are used in browser. | 22 // Used to create instances of objects under native that are used in browser. |
24 class JniDependencyFactory { | 23 class JniDependencyFactory { |
25 public: | 24 public: |
26 virtual ~JniDependencyFactory() {} | 25 virtual ~JniDependencyFactory() {} |
27 | 26 |
28 virtual scoped_refptr<AwQuotaManagerBridge> CreateAwQuotaManagerBridge( | 27 virtual scoped_refptr<AwQuotaManagerBridge> CreateAwQuotaManagerBridge( |
29 AwBrowserContext* browser_context) = 0; | 28 AwBrowserContext* browser_context) = 0; |
30 virtual content::GeolocationPermissionContext* CreateGeolocationPermission( | |
31 AwBrowserContext* browser_context) = 0; | |
32 virtual content::WebContentsViewDelegate* CreateViewDelegate( | 29 virtual content::WebContentsViewDelegate* CreateViewDelegate( |
33 content::WebContents* web_contents) = 0; | 30 content::WebContents* web_contents) = 0; |
34 virtual AwWebPreferencesPopulater* CreateWebPreferencesPopulater() = 0; | 31 virtual AwWebPreferencesPopulater* CreateWebPreferencesPopulater() = 0; |
35 #if defined(VIDEO_HOLE) | 32 #if defined(VIDEO_HOLE) |
36 virtual content::ExternalVideoSurfaceContainer* | 33 virtual content::ExternalVideoSurfaceContainer* |
37 CreateExternalVideoSurfaceContainer(content::WebContents* contents) = 0; | 34 CreateExternalVideoSurfaceContainer(content::WebContents* contents) = 0; |
38 #endif | 35 #endif |
39 }; | 36 }; |
40 | 37 |
41 } // namespace android_webview | 38 } // namespace android_webview |
42 | 39 |
43 #endif // ANDROID_WEBVIEW_BROWSER_JNI_DEPENDENCY_FACTORY_H_ | 40 #endif // ANDROID_WEBVIEW_BROWSER_JNI_DEPENDENCY_FACTORY_H_ |
OLD | NEW |