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

Side by Side Diff: trunk/src/chrome/browser/android/chrome_jni_registrar.cc

Issue 187453003: Revert 254929 "Add UI hook for distilling web pages for test shell." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 6 years, 9 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 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 "chrome/browser/android/chrome_jni_registrar.h" 5 #include "chrome/browser/android/chrome_jni_registrar.h"
6 6
7 #include "base/android/jni_android.h" 7 #include "base/android/jni_android.h"
8 #include "base/android/jni_registrar.h" 8 #include "base/android/jni_registrar.h"
9 #include "base/debug/trace_event.h" 9 #include "base/debug/trace_event.h"
10 #include "chrome/browser/android/banners/app_banner_manager.h" 10 #include "chrome/browser/android/banners/app_banner_manager.h"
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 #include "chrome/browser/ui/android/infobars/infobar_android.h" 55 #include "chrome/browser/ui/android/infobars/infobar_android.h"
56 #include "chrome/browser/ui/android/infobars/infobar_container_android.h" 56 #include "chrome/browser/ui/android/infobars/infobar_container_android.h"
57 #include "chrome/browser/ui/android/infobars/save_password_infobar.h" 57 #include "chrome/browser/ui/android/infobars/save_password_infobar.h"
58 #include "chrome/browser/ui/android/infobars/translate_infobar.h" 58 #include "chrome/browser/ui/android/infobars/translate_infobar.h"
59 #include "chrome/browser/ui/android/javascript_app_modal_dialog_android.h" 59 #include "chrome/browser/ui/android/javascript_app_modal_dialog_android.h"
60 #include "chrome/browser/ui/android/navigation_popup.h" 60 #include "chrome/browser/ui/android/navigation_popup.h"
61 #include "chrome/browser/ui/android/ssl_client_certificate_request.h" 61 #include "chrome/browser/ui/android/ssl_client_certificate_request.h"
62 #include "chrome/browser/ui/android/toolbar/toolbar_model_android.h" 62 #include "chrome/browser/ui/android/toolbar/toolbar_model_android.h"
63 #include "chrome/browser/ui/android/website_settings_popup_android.h" 63 #include "chrome/browser/ui/android/website_settings_popup_android.h"
64 #include "components/autofill/core/browser/android/component_jni_registrar.h" 64 #include "components/autofill/core/browser/android/component_jni_registrar.h"
65 #include "components/dom_distiller/android/component_jni_registrar.h"
66 #include "components/navigation_interception/component_jni_registrar.h" 65 #include "components/navigation_interception/component_jni_registrar.h"
67 #include "components/web_contents_delegate_android/component_jni_registrar.h" 66 #include "components/web_contents_delegate_android/component_jni_registrar.h"
68 67
69 #if defined(ENABLE_PRINTING) && !defined(ENABLE_FULL_PRINTING) 68 #if defined(ENABLE_PRINTING) && !defined(ENABLE_FULL_PRINTING)
70 #include "printing/printing_context_android.h" 69 #include "printing/printing_context_android.h"
71 #endif 70 #endif
72 71
73 bool RegisterCertificateViewer(JNIEnv* env); 72 bool RegisterCertificateViewer(JNIEnv* env);
74 73
75 namespace chrome { 74 namespace chrome {
76 namespace android { 75 namespace android {
77 76
78 static base::android::RegistrationMethod kChromeRegisteredMethods[] = { 77 static base::android::RegistrationMethod kChromeRegisteredMethods[] = {
79 // Register JNI for components we depend on. 78 // Register JNI for components we depend on.
80 { "DomDistiller", dom_distiller::android::RegisterDomDistiller },
81 { "NavigationInterception", 79 { "NavigationInterception",
82 navigation_interception::RegisterNavigationInterceptionJni }, 80 navigation_interception::RegisterNavigationInterceptionJni },
83 { "WebContentsDelegateAndroid", 81 { "WebContentsDelegateAndroid",
84 web_contents_delegate_android::RegisterWebContentsDelegateAndroidJni }, 82 web_contents_delegate_android::RegisterWebContentsDelegateAndroidJni },
85 { "RegisterAuxiliaryProfileLoader", autofill::RegisterAutofillAndroidJni }, 83 { "RegisterAuxiliaryProfileLoader", autofill::RegisterAutofillAndroidJni },
86 // Register JNI for chrome classes. 84 // Register JNI for chrome classes.
87 { "AccountManagementScreenHelper", AccountManagementScreenHelper::Register }, 85 { "AccountManagementScreenHelper", AccountManagementScreenHelper::Register },
88 { "AndroidProfileOAuth2TokenService", 86 { "AndroidProfileOAuth2TokenService",
89 AndroidProfileOAuth2TokenService::Register }, 87 AndroidProfileOAuth2TokenService::Register },
90 { "AppBannerManager", RegisterAppBannerManager }, 88 { "AppBannerManager", RegisterAppBannerManager },
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 }; 163 };
166 164
167 bool RegisterJni(JNIEnv* env) { 165 bool RegisterJni(JNIEnv* env) {
168 TRACE_EVENT0("startup", "chrome_android::RegisterJni"); 166 TRACE_EVENT0("startup", "chrome_android::RegisterJni");
169 return RegisterNativeMethods(env, kChromeRegisteredMethods, 167 return RegisterNativeMethods(env, kChromeRegisteredMethods,
170 arraysize(kChromeRegisteredMethods)); 168 arraysize(kChromeRegisteredMethods));
171 } 169 }
172 170
173 } // namespace android 171 } // namespace android
174 } // namespace chrome 172 } // namespace chrome
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698