Chromium Code Reviews| Index: android_webview/browser/native_factory.h |
| diff --git a/android_webview/browser/native_factory.h b/android_webview/browser/native_factory.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..13877a45080b1eb1fff69a88b408793805eb85af |
| --- /dev/null |
| +++ b/android_webview/browser/native_factory.h |
| @@ -0,0 +1,34 @@ |
| +// Copyright (c) 2013 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef ANDROID_WEBVIEW_BROWSER_NATIVE_FACTORY_H_ |
| +#define ANDROID_WEBVIEW_BROWSER_NATIVE_FACTORY_H_ |
| + |
| +namespace content { |
| +class GeolocationPermissionContext; |
| +class WebContents; |
| +class WebContentsViewDelegate; |
| +} // namespace content |
| + |
| +namespace android_webview { |
| + |
| +class AwBrowserContext; |
| +class AwQuotaManagerBridge; |
| + |
| +// Used to create instances of objects under native that are used in browser. |
| +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
|
| + public: |
| + virtual ~NativeFactory() {} |
| + |
| + virtual AwQuotaManagerBridge* CreateAwQuotaManagerBridge( |
| + AwBrowserContext* browser_context) = 0; |
| + virtual content::GeolocationPermissionContext* |
| + CreateGeolocationPermission() = 0; |
| + virtual content::WebContentsViewDelegate* CreateViewDelegate( |
| + content::WebContents* web_contents) = 0; |
| +}; |
| + |
| +} // namespace android_webview |
| + |
| +#endif // ANDROID_WEBVIEW_BROWSER_NATIVE_FACTORY_H_ |