OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/lib/main/webview_jni_onload.h" | 5 #include "android_webview/lib/main/webview_jni_onload.h" |
6 | 6 |
| 7 #include "android_webview/browser/android_webview_jni_registrar.h" |
7 #include "android_webview/common/aw_version_info_values.h" | 8 #include "android_webview/common/aw_version_info_values.h" |
8 #include "android_webview/lib/main/aw_main_delegate.h" | 9 #include "android_webview/lib/main/aw_main_delegate.h" |
9 #include "android_webview/native/android_webview_jni_registrar.h" | |
10 #include "base/android/jni_android.h" | 10 #include "base/android/jni_android.h" |
11 #include "base/android/jni_registrar.h" | 11 #include "base/android/jni_registrar.h" |
12 #include "base/android/library_loader/library_loader_hooks.h" | 12 #include "base/android/library_loader/library_loader_hooks.h" |
13 #include "base/bind.h" | 13 #include "base/bind.h" |
14 #include "components/web_contents_delegate_android/component_jni_registrar.h" | 14 #include "components/web_contents_delegate_android/component_jni_registrar.h" |
15 #include "content/public/app/content_jni_onload.h" | 15 #include "content/public/app/content_jni_onload.h" |
16 #include "content/public/app/content_main.h" | 16 #include "content/public/app/content_main.h" |
17 #include "url/url_util.h" | 17 #include "url/url_util.h" |
18 | 18 |
19 namespace android_webview { | 19 namespace android_webview { |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 content::SetContentMainDelegate(new android_webview::AwMainDelegate()); | 51 content::SetContentMainDelegate(new android_webview::AwMainDelegate()); |
52 | 52 |
53 // Initialize url lib here while we are still single-threaded, in case we use | 53 // Initialize url lib here while we are still single-threaded, in case we use |
54 // CookieManager before initializing Chromium (which would normally have done | 54 // CookieManager before initializing Chromium (which would normally have done |
55 // this). It's safe to call this multiple times. | 55 // this). It's safe to call this multiple times. |
56 url::Initialize(); | 56 url::Initialize(); |
57 return true; | 57 return true; |
58 } | 58 } |
59 | 59 |
60 } // android_webview | 60 } // android_webview |
OLD | NEW |