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

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

Issue 26477002: Android WebView: post QuotaManager calls to UI thread. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix missing origin in url construction Created 7 years, 2 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 | Annotate | Revision Log
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"
9
8 namespace content { 10 namespace content {
9 class GeolocationPermissionContext; 11 class GeolocationPermissionContext;
10 class WebContents; 12 class WebContents;
11 class WebContentsViewDelegate; 13 class WebContentsViewDelegate;
12 } // namespace content 14 } // namespace content
13 15
14 namespace android_webview { 16 namespace android_webview {
15 17
16 class AwBrowserContext; 18 class AwBrowserContext;
17 class AwQuotaManagerBridge; 19 class AwQuotaManagerBridge;
18 class AwWebPreferencesPopulater; 20 class AwWebPreferencesPopulater;
19 21
20 // Used to create instances of objects under native that are used in browser. 22 // Used to create instances of objects under native that are used in browser.
21 class JniDependencyFactory { 23 class JniDependencyFactory {
22 public: 24 public:
23 virtual ~JniDependencyFactory() {} 25 virtual ~JniDependencyFactory() {}
24 26
25 virtual AwQuotaManagerBridge* CreateAwQuotaManagerBridge( 27 virtual scoped_refptr<AwQuotaManagerBridge> CreateAwQuotaManagerBridge(
26 AwBrowserContext* browser_context) = 0; 28 AwBrowserContext* browser_context) = 0;
27 virtual content::GeolocationPermissionContext* CreateGeolocationPermission( 29 virtual content::GeolocationPermissionContext* CreateGeolocationPermission(
28 AwBrowserContext* browser_context) = 0; 30 AwBrowserContext* browser_context) = 0;
29 virtual content::WebContentsViewDelegate* CreateViewDelegate( 31 virtual content::WebContentsViewDelegate* CreateViewDelegate(
30 content::WebContents* web_contents) = 0; 32 content::WebContents* web_contents) = 0;
31 virtual AwWebPreferencesPopulater* CreateWebPreferencesPopulater() = 0; 33 virtual AwWebPreferencesPopulater* CreateWebPreferencesPopulater() = 0;
32 }; 34 };
33 35
34 } // namespace android_webview 36 } // namespace android_webview
35 37
36 #endif // ANDROID_WEBVIEW_BROWSER_JNI_DEPENDENCY_FACTORY_H_ 38 #endif // ANDROID_WEBVIEW_BROWSER_JNI_DEPENDENCY_FACTORY_H_
OLDNEW
« no previous file with comments | « android_webview/browser/aw_quota_manager_bridge.cc ('k') | android_webview/lib/main/aw_main_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698