| 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_settings.h" | 5 #include "android_webview/native/aw_settings.h" |
| 6 | 6 |
| 7 #include "android_webview/browser/renderer_host/aw_render_view_host_ext.h" | 7 #include "android_webview/browser/renderer_host/aw_render_view_host_ext.h" |
| 8 #include "android_webview/native/aw_contents.h" | 8 #include "android_webview/native/aw_contents.h" |
| 9 #include "base/android/jni_android.h" | 9 #include "base/android/jni_android.h" |
| 10 #include "base/android/jni_string.h" | 10 #include "base/android/jni_string.h" |
| 11 #include "content/public/browser/navigation_controller.h" | 11 #include "content/public/browser/navigation_controller.h" |
| 12 #include "content/public/browser/navigation_entry.h" | 12 #include "content/public/browser/navigation_entry.h" |
| 13 #include "content/public/browser/render_view_host.h" | 13 #include "content/public/browser/render_view_host.h" |
| 14 #include "content/public/browser/web_contents.h" | 14 #include "content/public/browser/web_contents.h" |
| 15 #include "content/public/common/content_client.h" | 15 #include "content/public/common/content_client.h" |
| 16 #include "jni/AwSettings_jni.h" | 16 #include "jni/AwSettings_jni.h" |
| 17 #include "webkit/common/user_agent/user_agent.h" | 17 #include "webkit/common/user_agent/user_agent.h" |
| 18 #include "webkit/common/webpreferences.h" | |
| 19 #include "webkit/glue/webkit_glue.h" | 18 #include "webkit/glue/webkit_glue.h" |
| 19 #include "webkit/glue/webpreferences.h" |
| 20 | 20 |
| 21 using base::android::ConvertJavaStringToUTF16; | 21 using base::android::ConvertJavaStringToUTF16; |
| 22 using base::android::ConvertUTF8ToJavaString; | 22 using base::android::ConvertUTF8ToJavaString; |
| 23 using base::android::ScopedJavaLocalRef; | 23 using base::android::ScopedJavaLocalRef; |
| 24 | 24 |
| 25 namespace android_webview { | 25 namespace android_webview { |
| 26 | 26 |
| 27 AwSettings::AwSettings(JNIEnv* env, jobject obj) | 27 AwSettings::AwSettings(JNIEnv* env, jobject obj) |
| 28 : aw_settings_(env, obj) { | 28 : aw_settings_(env, obj) { |
| 29 } | 29 } |
| (...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 262 static jstring GetDefaultUserAgent(JNIEnv* env, jclass clazz) { | 262 static jstring GetDefaultUserAgent(JNIEnv* env, jclass clazz) { |
| 263 return base::android::ConvertUTF8ToJavaString( | 263 return base::android::ConvertUTF8ToJavaString( |
| 264 env, content::GetUserAgent(GURL())).Release(); | 264 env, content::GetUserAgent(GURL())).Release(); |
| 265 } | 265 } |
| 266 | 266 |
| 267 bool RegisterAwSettings(JNIEnv* env) { | 267 bool RegisterAwSettings(JNIEnv* env) { |
| 268 return RegisterNativesImpl(env) >= 0; | 268 return RegisterNativesImpl(env) >= 0; |
| 269 } | 269 } |
| 270 | 270 |
| 271 } // namespace android_webview | 271 } // namespace android_webview |
| OLD | NEW |