OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "android_webview/native/aw_quota_manager_bridge_impl.h" | 5 #include "android_webview/native/aw_quota_manager_bridge_impl.h" |
6 | 6 |
7 #include <set> | 7 #include <set> |
8 | 8 |
9 #include "android_webview/browser/aw_browser_context.h" | 9 #include "android_webview/browser/aw_browser_context.h" |
10 #include "android_webview/browser/aw_content_browser_client.h" | 10 #include "android_webview/browser/aw_content_browser_client.h" |
11 #include "base/android/jni_array.h" | 11 #include "base/android/jni_array.h" |
12 #include "base/android/jni_string.h" | 12 #include "base/android/jni_string.h" |
13 #include "base/synchronization/waitable_event.h" | 13 #include "base/synchronization/waitable_event.h" |
14 #include "content/public/browser/browser_thread.h" | 14 #include "content/public/browser/browser_thread.h" |
15 #include "content/public/browser/storage_partition.h" | 15 #include "content/public/browser/storage_partition.h" |
16 #include "content/public/common/content_client.h" | 16 #include "content/public/common/content_client.h" |
17 #include "jni/AwQuotaManagerBridge_jni.h" | 17 #include "jni/AwQuotaManagerBridge_jni.h" |
18 #include "url/gurl.h" | 18 #include "url/gurl.h" |
19 #include "webkit/browser/quota/quota_manager.h" | 19 #include "storage/browser/quota/quota_manager.h" |
20 #include "webkit/common/quota/quota_types.h" | 20 #include "storage/common/quota/quota_types.h" |
21 | 21 |
22 using base::android::AttachCurrentThread; | 22 using base::android::AttachCurrentThread; |
23 using content::BrowserThread; | 23 using content::BrowserThread; |
24 using content::StoragePartition; | 24 using content::StoragePartition; |
25 using quota::QuotaClient; | 25 using quota::QuotaClient; |
26 using quota::QuotaManager; | 26 using quota::QuotaManager; |
27 | 27 |
28 namespace android_webview { | 28 namespace android_webview { |
29 | 29 |
30 namespace { | 30 namespace { |
(...skipping 317 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
348 | 348 |
349 Java_AwQuotaManagerBridge_onGetUsageAndQuotaForOriginCallback( | 349 Java_AwQuotaManagerBridge_onGetUsageAndQuotaForOriginCallback( |
350 env, obj.obj(), jcallback_id, is_quota, usage, quota); | 350 env, obj.obj(), jcallback_id, is_quota, usage, quota); |
351 } | 351 } |
352 | 352 |
353 bool RegisterAwQuotaManagerBridge(JNIEnv* env) { | 353 bool RegisterAwQuotaManagerBridge(JNIEnv* env) { |
354 return RegisterNativesImpl(env); | 354 return RegisterNativesImpl(env); |
355 } | 355 } |
356 | 356 |
357 } // namespace android_webview | 357 } // namespace android_webview |
OLD | NEW |