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" |
(...skipping 332 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
343 JNIEnv* env = AttachCurrentThread(); | 343 JNIEnv* env = AttachCurrentThread(); |
344 ScopedJavaLocalRef<jobject> obj = java_ref_.get(env); | 344 ScopedJavaLocalRef<jobject> obj = java_ref_.get(env); |
345 if (obj.is_null()) | 345 if (obj.is_null()) |
346 return; | 346 return; |
347 | 347 |
348 Java_AwQuotaManagerBridge_onGetUsageAndQuotaForOriginCallback( | 348 Java_AwQuotaManagerBridge_onGetUsageAndQuotaForOriginCallback( |
349 env, obj.obj(), jcallback_id, is_quota, usage, quota); | 349 env, obj.obj(), jcallback_id, is_quota, usage, quota); |
350 } | 350 } |
351 | 351 |
352 bool RegisterAwQuotaManagerBridge(JNIEnv* env) { | 352 bool RegisterAwQuotaManagerBridge(JNIEnv* env) { |
353 return RegisterNativesImpl(env) >= 0; | 353 return RegisterNativesImpl(env); |
354 } | 354 } |
355 | 355 |
356 } // namespace android_webview | 356 } // namespace android_webview |
OLD | NEW |