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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: android_webview/native/android_webview_jni_registrar.cc
diff --git a/android_webview/native/android_webview_jni_registrar.cc b/android_webview/native/android_webview_jni_registrar.cc
deleted file mode 100644
index 95239932eb6fd92dbbddd8ed9c3d351a527eb4d8..0000000000000000000000000000000000000000
--- a/android_webview/native/android_webview_jni_registrar.cc
+++ /dev/null
@@ -1,67 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "android_webview/native/android_webview_jni_registrar.h"
-
-#include "android_webview/native/android_protocol_handler.h"
-#include "android_webview/native/aw_autofill_client.h"
-#include "android_webview/native/aw_contents.h"
-#include "android_webview/native/aw_contents_client_bridge.h"
-#include "android_webview/native/aw_contents_statics.h"
-#include "android_webview/native/aw_debug.h"
-#include "android_webview/native/aw_devtools_server.h"
-#include "android_webview/native/aw_form_database.h"
-#include "android_webview/native/aw_gl_functor.h"
-#include "android_webview/native/aw_http_auth_handler.h"
-#include "android_webview/native/aw_metrics_service_client_impl.h"
-#include "android_webview/native/aw_pdf_exporter.h"
-#include "android_webview/native/aw_picture.h"
-#include "android_webview/native/aw_quota_manager_bridge_impl.h"
-#include "android_webview/native/aw_settings.h"
-#include "android_webview/native/aw_web_contents_delegate.h"
-#include "android_webview/native/cookie_manager.h"
-#include "android_webview/native/permission/aw_permission_request.h"
-#include "base/android/jni_android.h"
-#include "base/android/jni_registrar.h"
-#include "base/trace_event/trace_event.h"
-#include "components/spellcheck/spellcheck_build_features.h"
-
-#if BUILDFLAG(ENABLE_SPELLCHECK)
-#include "components/spellcheck/browser/android/component_jni_registrar.h"
-#endif
-
-namespace android_webview {
-
-static base::android::RegistrationMethod kWebViewRegisteredMethods[] = {
- // Register JNI for android_webview classes.
- { "AndroidProtocolHandler", RegisterAndroidProtocolHandler },
- { "AwAutofillClient", RegisterAwAutofillClient },
- { "AwContents", RegisterAwContents },
- { "AwContentsClientBridge", RegisterAwContentsClientBridge },
- { "AwContentsStatics", RegisterAwContentsStatics },
- { "AwDebug", RegisterAwDebug },
- { "AwDevToolsServer", RegisterAwDevToolsServer },
- { "AwFormDatabase", RegisterAwFormDatabase },
- { "AwPicture", RegisterAwPicture },
- { "AwSettings", RegisterAwSettings },
- { "AwHttpAuthHandler", RegisterAwHttpAuthHandler },
- { "AwMetricsServiceClient", RegisterAwMetricsServiceClient },
- { "AwPdfExporter", RegisterAwPdfExporter },
- { "AwPermissionRequest", RegisterAwPermissionRequest },
- { "AwQuotaManagerBridge", RegisterAwQuotaManagerBridge },
- { "AwWebContentsDelegate", RegisterAwWebContentsDelegate },
- { "CookieManager", RegisterCookieManager },
- { "AwGLFunctor", RegisterAwGLFunctor },
-#if BUILDFLAG(ENABLE_SPELLCHECK)
- {"SpellCheckerSessionBridge", spellcheck::android::RegisterSpellcheckJni},
-#endif
-};
-
-bool RegisterJni(JNIEnv* env) {
- TRACE_EVENT0("startup", "android_webview::RegisterJni");
- return RegisterNativeMethods(env,
- kWebViewRegisteredMethods, arraysize(kWebViewRegisteredMethods));
-}
-
-} // namespace android_webview

Powered by Google App Engine
This is Rietveld 408576698