Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(186)

Side by Side Diff: android_webview/browser/jni_dependency_factory.h

Issue 1172093002: Implement HttpUserAgentSettings delegate for Android WebView (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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; 11 class ExternalVideoSurfaceContainer;
12 class WebContents; 12 class WebContents;
13 class WebContentsViewDelegate; 13 class WebContentsViewDelegate;
14 } // namespace content 14 } // namespace content
15 15
16 namespace android_webview { 16 namespace android_webview {
17 17
18 class AwBrowserContext; 18 class AwBrowserContext;
19 class AwMessagePortService; 19 class AwMessagePortService;
20 class AwQuotaManagerBridge; 20 class AwQuotaManagerBridge;
21 class AwWebPreferencesPopulater; 21 class AwWebPreferencesPopulater;
22 class AwLocaleManager;
22 23
23 // Used to create instances of objects under native that are used in browser. 24 // Used to create instances of objects under native that are used in browser.
24 class JniDependencyFactory { 25 class JniDependencyFactory {
25 public: 26 public:
26 virtual ~JniDependencyFactory() {} 27 virtual ~JniDependencyFactory() {}
27 28
28 virtual scoped_refptr<AwQuotaManagerBridge> CreateAwQuotaManagerBridge( 29 virtual scoped_refptr<AwQuotaManagerBridge> CreateAwQuotaManagerBridge(
29 AwBrowserContext* browser_context) = 0; 30 AwBrowserContext* browser_context) = 0;
30 virtual content::WebContentsViewDelegate* CreateViewDelegate( 31 virtual content::WebContentsViewDelegate* CreateViewDelegate(
31 content::WebContents* web_contents) = 0; 32 content::WebContents* web_contents) = 0;
32 virtual AwWebPreferencesPopulater* CreateWebPreferencesPopulater() = 0; 33 virtual AwWebPreferencesPopulater* CreateWebPreferencesPopulater() = 0;
33 virtual AwMessagePortService* CreateAwMessagePortService() = 0; 34 virtual AwMessagePortService* CreateAwMessagePortService() = 0;
35 virtual AwLocaleManager* CreateAwLocaleManager() = 0;
34 #if defined(VIDEO_HOLE) 36 #if defined(VIDEO_HOLE)
35 virtual content::ExternalVideoSurfaceContainer* 37 virtual content::ExternalVideoSurfaceContainer*
36 CreateExternalVideoSurfaceContainer(content::WebContents* contents) = 0; 38 CreateExternalVideoSurfaceContainer(content::WebContents* contents) = 0;
37 #endif 39 #endif
38 }; 40 };
39 41
40 } // namespace android_webview 42 } // namespace android_webview
41 43
42 #endif // ANDROID_WEBVIEW_BROWSER_JNI_DEPENDENCY_FACTORY_H_ 44 #endif // ANDROID_WEBVIEW_BROWSER_JNI_DEPENDENCY_FACTORY_H_
OLDNEW
« no previous file with comments | « android_webview/browser/aw_locale_manager.h ('k') | android_webview/browser/net/aw_http_user_agent_settings.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698