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

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

Issue 12282004: Added personal_data_manager android implementation for auto-populating auto-fill on android builds … (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed autogenerated nits from trybot Created 7 years, 8 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
« no previous file with comments | « no previous file | chrome/chrome.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "chrome/browser/android/chrome_web_contents_delegate_android.h" 9 #include "chrome/browser/android/chrome_web_contents_delegate_android.h"
10 #include "chrome/browser/android/content_view_util.h" 10 #include "chrome/browser/android/content_view_util.h"
11 #include "chrome/browser/android/dev_tools_server.h" 11 #include "chrome/browser/android/dev_tools_server.h"
12 #include "chrome/browser/android/intent_helper.h" 12 #include "chrome/browser/android/intent_helper.h"
13 #include "chrome/browser/android/process_utils.h" 13 #include "chrome/browser/android/process_utils.h"
14 #include "chrome/browser/android/provider/chrome_browser_provider.h" 14 #include "chrome/browser/android/provider/chrome_browser_provider.h"
15 #include "chrome/browser/autofill/android/personal_data_manager_android.h" 15 #include "chrome/browser/autofill/android/personal_data_manager_android.h"
16 #include "chrome/browser/history/android/sqlite_cursor.h" 16 #include "chrome/browser/history/android/sqlite_cursor.h"
17 #include "chrome/browser/lifetime/application_lifetime_android.h" 17 #include "chrome/browser/lifetime/application_lifetime_android.h"
18 #include "chrome/browser/profiles/profile_android.h" 18 #include "chrome/browser/profiles/profile_android.h"
19 #include "chrome/browser/search_engines/template_url_service_android.h" 19 #include "chrome/browser/search_engines/template_url_service_android.h"
20 #include "chrome/browser/sync/profile_sync_service_android.h" 20 #include "chrome/browser/sync/profile_sync_service_android.h"
21 #include "chrome/browser/ui/android/autofill/autofill_dialog_view_android.h" 21 #include "chrome/browser/ui/android/autofill/autofill_dialog_view_android.h"
22 #include "chrome/browser/ui/android/autofill/autofill_popup_view_android.h" 22 #include "chrome/browser/ui/android/autofill/autofill_popup_view_android.h"
23 #include "chrome/browser/ui/android/chrome_http_auth_handler.h" 23 #include "chrome/browser/ui/android/chrome_http_auth_handler.h"
24 #include "chrome/browser/ui/android/javascript_app_modal_dialog_android.h" 24 #include "chrome/browser/ui/android/javascript_app_modal_dialog_android.h"
25 #include "chrome/browser/ui/android/navigation_popup.h" 25 #include "chrome/browser/ui/android/navigation_popup.h"
26 #include "chrome/browser/ui/android/ssl_client_certificate_request.h" 26 #include "chrome/browser/ui/android/ssl_client_certificate_request.h"
27 #include "chrome/browser/ui/android/website_settings_popup_android.h" 27 #include "chrome/browser/ui/android/website_settings_popup_android.h"
28 #include "components/autofill/browser/android/component_jni_registrar.h"
28 #include "components/navigation_interception/component_jni_registrar.h" 29 #include "components/navigation_interception/component_jni_registrar.h"
29 #include "components/web_contents_delegate_android/component_jni_registrar.h" 30 #include "components/web_contents_delegate_android/component_jni_registrar.h"
30 31
31 bool RegisterCertificateViewer(JNIEnv* env); 32 bool RegisterCertificateViewer(JNIEnv* env);
32 33
33 namespace chrome { 34 namespace chrome {
34 namespace android { 35 namespace android {
35 36
36 static base::android::RegistrationMethod kChromeRegisteredMethods[] = { 37 static base::android::RegistrationMethod kChromeRegisteredMethods[] = {
37 // Register JNI for components we depend on. 38 // Register JNI for components we depend on.
38 { "NavigationInterception", components::RegisterNavigationInterceptionJni }, 39 { "NavigationInterception", components::RegisterNavigationInterceptionJni },
39 { "WebContentsDelegateAndroid", 40 { "WebContentsDelegateAndroid",
40 components::RegisterWebContentsDelegateAndroidJni }, 41 components::RegisterWebContentsDelegateAndroidJni },
42 { "RegisterAuxiliaryProfileLoader",
43 components::RegisterAutofillAndroidJni },
41 // Register JNI for chrome classes. 44 // Register JNI for chrome classes.
42 { "ApplicationLifetime", RegisterApplicationLifetimeAndroid}, 45 { "ApplicationLifetime", RegisterApplicationLifetimeAndroid},
43 { "AutofillDialog", 46 { "AutofillDialog",
44 autofill::AutofillDialogViewAndroid::RegisterAutofillDialogViewAndroid}, 47 autofill::AutofillDialogViewAndroid::RegisterAutofillDialogViewAndroid},
45 { "AutofillPopup", 48 { "AutofillPopup",
46 AutofillPopupViewAndroid::RegisterAutofillPopupViewAndroid}, 49 AutofillPopupViewAndroid::RegisterAutofillPopupViewAndroid},
47 { "CertificateViewer", RegisterCertificateViewer}, 50 { "CertificateViewer", RegisterCertificateViewer},
48 { "ChromeBrowserProvider", 51 { "ChromeBrowserProvider",
49 ChromeBrowserProvider::RegisterChromeBrowserProvider }, 52 ChromeBrowserProvider::RegisterChromeBrowserProvider },
50 { "ChromeHttpAuthHandler", 53 { "ChromeHttpAuthHandler",
(...skipping 19 matching lines...) Expand all
70 WebsiteSettingsPopupAndroid::RegisterWebsiteSettingsPopupAndroid }, 73 WebsiteSettingsPopupAndroid::RegisterWebsiteSettingsPopupAndroid },
71 }; 74 };
72 75
73 bool RegisterJni(JNIEnv* env) { 76 bool RegisterJni(JNIEnv* env) {
74 return RegisterNativeMethods(env, kChromeRegisteredMethods, 77 return RegisterNativeMethods(env, kChromeRegisteredMethods,
75 arraysize(kChromeRegisteredMethods)); 78 arraysize(kChromeRegisteredMethods));
76 } 79 }
77 80
78 } // namespace android 81 } // namespace android
79 } // namespace chrome 82 } // namespace chrome
OLDNEW
« no previous file with comments | « no previous file | chrome/chrome.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698