| 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 "content/public/browser/browser_thread.h" | 13 #include "content/public/browser/browser_thread.h" |
| 14 #include "content/public/browser/storage_partition.h" | 14 #include "content/public/browser/storage_partition.h" |
| 15 #include "content/public/common/content_client.h" | 15 #include "content/public/common/content_client.h" |
| 16 #include "googleurl/src/gurl.h" | |
| 17 #include "jni/AwQuotaManagerBridge_jni.h" | 16 #include "jni/AwQuotaManagerBridge_jni.h" |
| 17 #include "url/gurl.h" |
| 18 #include "webkit/browser/quota/quota_manager.h" | 18 #include "webkit/browser/quota/quota_manager.h" |
| 19 #include "webkit/common/quota/quota_types.h" | 19 #include "webkit/common/quota/quota_types.h" |
| 20 | 20 |
| 21 using base::android::AttachCurrentThread; | 21 using base::android::AttachCurrentThread; |
| 22 using content::BrowserThread; | 22 using content::BrowserThread; |
| 23 using content::StoragePartition; | 23 using content::StoragePartition; |
| 24 using quota::QuotaClient; | 24 using quota::QuotaClient; |
| 25 using quota::QuotaManager; | 25 using quota::QuotaManager; |
| 26 | 26 |
| 27 namespace android_webview { | 27 namespace android_webview { |
| (...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 289 | 289 |
| 290 Java_AwQuotaManagerBridge_onGetUsageAndQuotaForOriginCallback( | 290 Java_AwQuotaManagerBridge_onGetUsageAndQuotaForOriginCallback( |
| 291 env, obj.obj(), jcallback_id, is_quota, usage, quota); | 291 env, obj.obj(), jcallback_id, is_quota, usage, quota); |
| 292 } | 292 } |
| 293 | 293 |
| 294 bool RegisterAwQuotaManagerBridge(JNIEnv* env) { | 294 bool RegisterAwQuotaManagerBridge(JNIEnv* env) { |
| 295 return RegisterNativesImpl(env) >= 0; | 295 return RegisterNativesImpl(env) >= 0; |
| 296 } | 296 } |
| 297 | 297 |
| 298 } // namespace android_webview | 298 } // namespace android_webview |
| OLD | NEW |