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