Supervised user whitelists: Cleanup
[chromium-blink-merge.git] / android_webview / browser / jni_dependency_factory.h
blobd27e9b2b407249216468fedb67eb576dadde3b53
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.
5 #ifndef ANDROID_WEBVIEW_BROWSER_JNI_DEPENDENCY_FACTORY_H_
6 #define ANDROID_WEBVIEW_BROWSER_JNI_DEPENDENCY_FACTORY_H_
8 #include "base/memory/ref_counted.h"
10 namespace content {
11 class ExternalVideoSurfaceContainer;
12 class WebContents;
13 class WebContentsViewDelegate;
14 } // namespace content
16 namespace android_webview {
18 class AwBrowserContext;
19 class AwMessagePortService;
20 class AwQuotaManagerBridge;
21 class AwWebPreferencesPopulater;
23 // Used to create instances of objects under native that are used in browser.
24 class JniDependencyFactory {
25 public:
26 virtual ~JniDependencyFactory() {}
28 virtual scoped_refptr<AwQuotaManagerBridge> CreateAwQuotaManagerBridge(
29 AwBrowserContext* browser_context) = 0;
30 virtual content::WebContentsViewDelegate* CreateViewDelegate(
31 content::WebContents* web_contents) = 0;
32 virtual AwWebPreferencesPopulater* CreateWebPreferencesPopulater() = 0;
33 virtual AwMessagePortService* CreateAwMessagePortService() = 0;
34 #if defined(VIDEO_HOLE)
35 virtual content::ExternalVideoSurfaceContainer*
36 CreateExternalVideoSurfaceContainer(content::WebContents* contents) = 0;
37 #endif
40 } // namespace android_webview
42 #endif // ANDROID_WEBVIEW_BROWSER_JNI_DEPENDENCY_FACTORY_H_