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 "android_webview/browser/aw_safe_browsing_config_helper.h" | 8 #include "android_webview/browser/aw_safe_browsing_config_helper.h" |
9 #include "android_webview/browser/net/aw_url_request_context_getter.h" | 9 #include "android_webview/browser/net/aw_url_request_context_getter.h" |
10 #include "android_webview/common/aw_version_info_values.h" | 10 #include "android_webview/common/aw_version_info_values.h" |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
92 // static | 92 // static |
93 void SetServiceWorkerIoThreadClient( | 93 void SetServiceWorkerIoThreadClient( |
94 JNIEnv* env, | 94 JNIEnv* env, |
95 const JavaParamRef<jclass>&, | 95 const JavaParamRef<jclass>&, |
96 const base::android::JavaParamRef<jobject>& io_thread_client, | 96 const base::android::JavaParamRef<jobject>& io_thread_client, |
97 const base::android::JavaParamRef<jobject>& browser_context) { | 97 const base::android::JavaParamRef<jobject>& browser_context) { |
98 AwContentsIoThreadClientImpl::SetServiceWorkerIoThreadClient( | 98 AwContentsIoThreadClientImpl::SetServiceWorkerIoThreadClient( |
99 io_thread_client, browser_context); | 99 io_thread_client, browser_context); |
100 } | 100 } |
101 | 101 |
102 // static | |
103 void SetCheckClearTextPermitted(JNIEnv* env, | |
104 const JavaParamRef<jclass>&, | |
105 jboolean permitted) { | |
106 AwURLRequestContextGetter::set_check_cleartext_permitted(permitted); | |
107 } | |
108 | |
109 bool RegisterAwContentsStatics(JNIEnv* env) { | 102 bool RegisterAwContentsStatics(JNIEnv* env) { |
110 return RegisterNativesImpl(env); | 103 return RegisterNativesImpl(env); |
111 } | 104 } |
112 | 105 |
113 } // namespace android_webview | 106 } // namespace android_webview |
OLD | NEW |