diff options
author | boliu@chromium.org <boliu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-02-22 18:53:04 +0000 |
---|---|---|
committer | boliu@chromium.org <boliu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-02-22 18:53:04 +0000 |
commit | 2a3a0596a6a5d0703ff49df9d45fd57e9db96959 (patch) | |
tree | 77b52f512dd593a3c9a9a335c02c8c5065aadb37 /android_webview/native/aw_geolocation_permission_context.h | |
parent | 6f356a88e6587d7d206f6327b0771e810609cf70 (diff) | |
download | chromium_src-2a3a0596a6a5d0703ff49df9d45fd57e9db96959.zip chromium_src-2a3a0596a6a5d0703ff49df9d45fd57e9db96959.tar.gz chromium_src-2a3a0596a6a5d0703ff49df9d45fd57e9db96959.tar.bz2 |
Implement WebStorage API methods
Most of the methods involves calling methods to QuotaManager
on the IO thread and translating the arguments between Java
and native code. Introduce AwQuotaManagerBridge to facilitate
this logic.
The Java AwQuotaManagerBridge is currently a singleton but
should be owned by AwBrowserContext when we have one. The
native one is owned by native AwBrowserContext. Java calls
the corresponding native AwBrowserContext to obtain the
pointer.
Introduced JniDependencyFactory interface used to create
native objects under native but is used or passed in
BrowserContext or ContentsBrowserClient.
Also added base::android::ToJavaLongArray to convert to
Java long arrays.
BUG=
Android only change. Ran through android bots.
NOTRY=true
Review URL: https://chromiumcodereview.appspot.com/12253057
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@184139 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'android_webview/native/aw_geolocation_permission_context.h')
-rw-r--r-- | android_webview/native/aw_geolocation_permission_context.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/android_webview/native/aw_geolocation_permission_context.h b/android_webview/native/aw_geolocation_permission_context.h index 9e1cf53..4596708 100644 --- a/android_webview/native/aw_geolocation_permission_context.h +++ b/android_webview/native/aw_geolocation_permission_context.h @@ -11,10 +11,13 @@ class GURL; namespace android_webview { +class AwBrowserContext; + class AwGeolocationPermissionContext : public content::GeolocationPermissionContext { public: - static content::GeolocationPermissionContext* Create(); + static content::GeolocationPermissionContext* Create( + AwBrowserContext* browser_context); // content::GeolocationPermissionContext implementation virtual void RequestGeolocationPermission( |