summaryrefslogtreecommitdiffstats
path: root/android_webview/browser/jni_dependency_factory.h
diff options
context:
space:
mode:
authortorne@chromium.org <torne@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-10-08 12:56:26 +0000
committertorne@chromium.org <torne@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-10-08 12:56:26 +0000
commit1a64c31010fa61fa92593b52d7063a4d6188c4a8 (patch)
tree3e184adee4a39dcbc03d1f21a1bf2bf017b992b3 /android_webview/browser/jni_dependency_factory.h
parentc1049d02b308da4636b46ba7aa47e9ebae3fde29 (diff)
downloadchromium_src-1a64c31010fa61fa92593b52d7063a4d6188c4a8.zip
chromium_src-1a64c31010fa61fa92593b52d7063a4d6188c4a8.tar.gz
chromium_src-1a64c31010fa61fa92593b52d7063a4d6188c4a8.tar.bz2
Android WebView: post QuotaManager calls to UI thread.
The AwQuotaManagerBridge needs to be usable from any thread, not just the UI thread. Make it refcounted and have its methods post to the UI thread if not already there. Since none of the methods are synchronous there's no need to wait for the posted messages to be handled. BUG=305205 R=benm@chromium.org Review URL: https://codereview.chromium.org/26477002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@227508 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'android_webview/browser/jni_dependency_factory.h')
-rw-r--r--android_webview/browser/jni_dependency_factory.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/android_webview/browser/jni_dependency_factory.h b/android_webview/browser/jni_dependency_factory.h
index e6e0ea9..b396ad0 100644
--- a/android_webview/browser/jni_dependency_factory.h
+++ b/android_webview/browser/jni_dependency_factory.h
@@ -5,6 +5,8 @@
#ifndef ANDROID_WEBVIEW_BROWSER_JNI_DEPENDENCY_FACTORY_H_
#define ANDROID_WEBVIEW_BROWSER_JNI_DEPENDENCY_FACTORY_H_
+#include "base/memory/ref_counted.h"
+
namespace content {
class GeolocationPermissionContext;
class WebContents;
@@ -22,7 +24,7 @@ class JniDependencyFactory {
public:
virtual ~JniDependencyFactory() {}
- virtual AwQuotaManagerBridge* CreateAwQuotaManagerBridge(
+ virtual scoped_refptr<AwQuotaManagerBridge> CreateAwQuotaManagerBridge(
AwBrowserContext* browser_context) = 0;
virtual content::GeolocationPermissionContext* CreateGeolocationPermission(
AwBrowserContext* browser_context) = 0;