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