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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: android_webview/native/aw_quota_manager_bridge.h
diff --git a/android_webview/native/aw_quota_manager_bridge.h b/android_webview/native/aw_quota_manager_bridge.h
new file mode 100644
index 0000000000000000000000000000000000000000..8542928337946ac1c7d5cb360f58a8f0ffbf0634
--- /dev/null
+++ b/android_webview/native/aw_quota_manager_bridge.h
@@ -0,0 +1,49 @@
+// Copyright (c) 2013 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef ANDROID_WEBVIEW_NATIVE_AW_QUOTA_MANAGER_BRIDGE_H_
+#define ANDROID_WEBVIEW_NATIVE_AW_QUOTA_MANAGER_BRIDGE_H_
+
+#include <jni.h>
+
+#include "base/android/jni_helper.h"
+#include "base/basictypes.h"
+
+namespace android_webview {
+
+class AwBrowserContext;
+
+class AwQuotaManagerBridge {
+ public:
+ static AwQuotaManagerBridge* Create(AwBrowserContext* browser_context);
+
+ void Init(JNIEnv* env, jobject object);
+ void DeleteAllData(JNIEnv* env, jobject object);
+ void DeleteOrigin(JNIEnv* env, jobject object, jobject origin);
+ void GetOrigins(JNIEnv* env, jobject object, jint callback_id);
+ void GetQuotaForOrigin(JNIEnv* env,
+ jobject object,
+ jobject origin,
+ jint callback_id);
+ void GetUsageForOrigin(JNIEnv* env,
+ jobject object,
+ jobject origin,
+ jint callback_id);
+
+ private:
+ AwQuotaManagerBridge(AwBrowserContext* browser_context);
+
+
+ JavaObjectWeakGlobalRef java_ref_;
+
+ AwBrowserContext* browser_context_;
+
+ DISALLOW_COPY_AND_ASSIGN(AwQuotaManagerBridge);
+};
+
+bool RegisterAwQuotaManagerBridge(JNIEnv* env);
+
+} // namespace android_webview
+
+#endif // ANDROID_WEBVIEW_NATIVE_AW_QUOTA_MANAGER_BRIDGE_H_

Powered by Google App Engine
This is Rietveld 408576698