| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_contents_statics.h" | 5 #include "android_webview/native/aw_contents_statics.h" |
| 6 | 6 |
| 7 #include "android_webview/browser/aw_browser_context.h" | 7 #include "android_webview/browser/aw_browser_context.h" |
| 8 #include "base/android/jni_string.h" | 8 #include "base/android/jni_string.h" |
| 9 #include "base/android/scoped_java_ref.h" | 9 #include "base/android/scoped_java_ref.h" |
| 10 #include "base/callback.h" | 10 #include "base/callback.h" |
| 11 #include "components/data_reduction_proxy/browser/data_reduction_proxy_auth_requ
est_handler.h" | 11 #include "components/data_reduction_proxy/browser/data_reduction_proxy_auth_requ
est_handler.h" |
| 12 #include "content/public/browser/android/synchronous_compositor.h" |
| 12 #include "content/public/browser/browser_thread.h" | 13 #include "content/public/browser/browser_thread.h" |
| 13 #include "content/public/common/url_constants.h" | 14 #include "content/public/common/url_constants.h" |
| 14 #include "jni/AwContentsStatics_jni.h" | 15 #include "jni/AwContentsStatics_jni.h" |
| 15 #include "net/cert/cert_database.h" | 16 #include "net/cert/cert_database.h" |
| 16 | 17 |
| 17 using base::android::AttachCurrentThread; | 18 using base::android::AttachCurrentThread; |
| 18 using base::android::ConvertJavaStringToUTF8; | 19 using base::android::ConvertJavaStringToUTF8; |
| 19 using base::android::ScopedJavaGlobalRef; | 20 using base::android::ScopedJavaGlobalRef; |
| 20 using content::BrowserThread; | 21 using content::BrowserThread; |
| 21 using data_reduction_proxy::DataReductionProxyAuthRequestHandler; | 22 using data_reduction_proxy::DataReductionProxyAuthRequestHandler; |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 66 void SetDataReductionProxyEnabled(JNIEnv* env, jclass, jboolean enabled) { | 67 void SetDataReductionProxyEnabled(JNIEnv* env, jclass, jboolean enabled) { |
| 67 AwBrowserContext::SetDataReductionProxyEnabled(enabled); | 68 AwBrowserContext::SetDataReductionProxyEnabled(enabled); |
| 68 } | 69 } |
| 69 | 70 |
| 70 // static | 71 // static |
| 71 jstring GetUnreachableWebDataUrl(JNIEnv* env, jclass) { | 72 jstring GetUnreachableWebDataUrl(JNIEnv* env, jclass) { |
| 72 return base::android::ConvertUTF8ToJavaString( | 73 return base::android::ConvertUTF8ToJavaString( |
| 73 env, content::kUnreachableWebDataURL).Release(); | 74 env, content::kUnreachableWebDataURL).Release(); |
| 74 } | 75 } |
| 75 | 76 |
| 77 // static |
| 78 void SetRecordFullDocument(JNIEnv* env, jclass, jboolean record_full_document) { |
| 79 content::SynchronousCompositor::SetRecordFullDocument(record_full_document); |
| 80 } |
| 81 |
| 76 bool RegisterAwContentsStatics(JNIEnv* env) { | 82 bool RegisterAwContentsStatics(JNIEnv* env) { |
| 77 return RegisterNativesImpl(env); | 83 return RegisterNativesImpl(env); |
| 78 } | 84 } |
| 79 | 85 |
| 80 } // namespace android_webview | 86 } // namespace android_webview |
| OLD | NEW |