Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(22)

Side by Side Diff: android_webview/native/android_webview_jni_registrar.cc

Issue 2863233002: [WebView] Move files from native to browser (Closed)
Patch Set: Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "android_webview/native/android_webview_jni_registrar.h"
6
7 #include "android_webview/native/android_protocol_handler.h"
8 #include "android_webview/native/aw_autofill_client.h"
9 #include "android_webview/native/aw_contents.h"
10 #include "android_webview/native/aw_contents_client_bridge.h"
11 #include "android_webview/native/aw_contents_statics.h"
12 #include "android_webview/native/aw_debug.h"
13 #include "android_webview/native/aw_devtools_server.h"
14 #include "android_webview/native/aw_form_database.h"
15 #include "android_webview/native/aw_gl_functor.h"
16 #include "android_webview/native/aw_http_auth_handler.h"
17 #include "android_webview/native/aw_metrics_service_client_impl.h"
18 #include "android_webview/native/aw_pdf_exporter.h"
19 #include "android_webview/native/aw_picture.h"
20 #include "android_webview/native/aw_quota_manager_bridge_impl.h"
21 #include "android_webview/native/aw_settings.h"
22 #include "android_webview/native/aw_web_contents_delegate.h"
23 #include "android_webview/native/cookie_manager.h"
24 #include "android_webview/native/permission/aw_permission_request.h"
25 #include "base/android/jni_android.h"
26 #include "base/android/jni_registrar.h"
27 #include "base/trace_event/trace_event.h"
28 #include "components/spellcheck/spellcheck_build_features.h"
29
30 #if BUILDFLAG(ENABLE_SPELLCHECK)
31 #include "components/spellcheck/browser/android/component_jni_registrar.h"
32 #endif
33
34 namespace android_webview {
35
36 static base::android::RegistrationMethod kWebViewRegisteredMethods[] = {
37 // Register JNI for android_webview classes.
38 { "AndroidProtocolHandler", RegisterAndroidProtocolHandler },
39 { "AwAutofillClient", RegisterAwAutofillClient },
40 { "AwContents", RegisterAwContents },
41 { "AwContentsClientBridge", RegisterAwContentsClientBridge },
42 { "AwContentsStatics", RegisterAwContentsStatics },
43 { "AwDebug", RegisterAwDebug },
44 { "AwDevToolsServer", RegisterAwDevToolsServer },
45 { "AwFormDatabase", RegisterAwFormDatabase },
46 { "AwPicture", RegisterAwPicture },
47 { "AwSettings", RegisterAwSettings },
48 { "AwHttpAuthHandler", RegisterAwHttpAuthHandler },
49 { "AwMetricsServiceClient", RegisterAwMetricsServiceClient },
50 { "AwPdfExporter", RegisterAwPdfExporter },
51 { "AwPermissionRequest", RegisterAwPermissionRequest },
52 { "AwQuotaManagerBridge", RegisterAwQuotaManagerBridge },
53 { "AwWebContentsDelegate", RegisterAwWebContentsDelegate },
54 { "CookieManager", RegisterCookieManager },
55 { "AwGLFunctor", RegisterAwGLFunctor },
56 #if BUILDFLAG(ENABLE_SPELLCHECK)
57 {"SpellCheckerSessionBridge", spellcheck::android::RegisterSpellcheckJni},
58 #endif
59 };
60
61 bool RegisterJni(JNIEnv* env) {
62 TRACE_EVENT0("startup", "android_webview::RegisterJni");
63 return RegisterNativeMethods(env,
64 kWebViewRegisteredMethods, arraysize(kWebViewRegisteredMethods));
65 }
66
67 } // namespace android_webview
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698