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

Side by Side Diff: android_webview/native/aw_quota_manager_bridge.h

Issue 12253057: Implement WebStorage API methods (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 10 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef ANDROID_WEBVIEW_NATIVE_AW_QUOTA_MANAGER_BRIDGE_H_
6 #define ANDROID_WEBVIEW_NATIVE_AW_QUOTA_MANAGER_BRIDGE_H_
7
8 #include <jni.h>
9
10 #include "base/android/jni_helper.h"
11 #include "base/basictypes.h"
12
13 namespace android_webview {
14
15 class AwBrowserContext;
16
17 class AwQuotaManagerBridge {
18 public:
19 static AwQuotaManagerBridge* Create(AwBrowserContext* browser_context);
20
21 void Init(JNIEnv* env, jobject object);
22 void DeleteAllData(JNIEnv* env, jobject object);
23 void DeleteOrigin(JNIEnv* env, jobject object, jobject origin);
24 void GetOrigins(JNIEnv* env, jobject object, jint callback_id);
25 void GetQuotaForOrigin(JNIEnv* env,
26 jobject object,
27 jobject origin,
28 jint callback_id);
29 void GetUsageForOrigin(JNIEnv* env,
30 jobject object,
31 jobject origin,
32 jint callback_id);
33
34 private:
35 AwQuotaManagerBridge(AwBrowserContext* browser_context);
36
37
38 JavaObjectWeakGlobalRef java_ref_;
39
40 AwBrowserContext* browser_context_;
41
42 DISALLOW_COPY_AND_ASSIGN(AwQuotaManagerBridge);
43 };
44
45 bool RegisterAwQuotaManagerBridge(JNIEnv* env);
46
47 } // namespace android_webview
48
49 #endif // ANDROID_WEBVIEW_NATIVE_AW_QUOTA_MANAGER_BRIDGE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698