| 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_
|
|
|