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_NATIVE_FACTORY_H_ | |
6 #define ANDROID_WEBVIEW_BROWSER_NATIVE_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 NativeFactory { | |
joth
2013/02/21 22:57:52
native is a bit vague here... maybe JavaBridgeFact
boliu
2013/02/22 00:07:02
Renamed to JniDependencyFactory
| |
21 public: | |
22 virtual ~NativeFactory() {} | |
23 | |
24 virtual AwQuotaManagerBridge* CreateAwQuotaManagerBridge( | |
25 AwBrowserContext* browser_context) = 0; | |
26 virtual content::GeolocationPermissionContext* | |
27 CreateGeolocationPermission() = 0; | |
28 virtual content::WebContentsViewDelegate* CreateViewDelegate( | |
29 content::WebContents* web_contents) = 0; | |
30 }; | |
31 | |
32 } // namespace android_webview | |
33 | |
34 #endif // ANDROID_WEBVIEW_BROWSER_NATIVE_FACTORY_H_ | |
OLD | NEW |