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

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

Issue 23458016: Added probe to determine if data reduction proxy can be used (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed test Created 7 years, 2 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
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/bookmarks_bridge.h" 10 #include "chrome/browser/android/bookmarks_bridge.h"
11 #include "chrome/browser/android/chrome_web_contents_delegate_android.h" 11 #include "chrome/browser/android/chrome_web_contents_delegate_android.h"
12 #include "chrome/browser/android/content_view_util.h" 12 #include "chrome/browser/android/content_view_util.h"
13 #include "chrome/browser/android/dev_tools_server.h" 13 #include "chrome/browser/android/dev_tools_server.h"
14 #include "chrome/browser/android/favicon_helper.h" 14 #include "chrome/browser/android/favicon_helper.h"
15 #include "chrome/browser/android/field_trial_helper.h" 15 #include "chrome/browser/android/field_trial_helper.h"
16 #include "chrome/browser/android/foreign_session_helper.h" 16 #include "chrome/browser/android/foreign_session_helper.h"
17 #include "chrome/browser/android/intent_helper.h" 17 #include "chrome/browser/android/intent_helper.h"
18 #include "chrome/browser/android/most_visited_sites.h" 18 #include "chrome/browser/android/most_visited_sites.h"
19 #include "chrome/browser/android/omnibox/omnibox_prerender.h" 19 #include "chrome/browser/android/omnibox/omnibox_prerender.h"
20 #include "chrome/browser/android/provider/chrome_browser_provider.h" 20 #include "chrome/browser/android/provider/chrome_browser_provider.h"
21 #include "chrome/browser/android/shortcut_helper.h" 21 #include "chrome/browser/android/shortcut_helper.h"
22 #include "chrome/browser/android/signin/signin_manager_android.h" 22 #include "chrome/browser/android/signin/signin_manager_android.h"
23 #include "chrome/browser/android/tab_android.h" 23 #include "chrome/browser/android/tab_android.h"
24 #include "chrome/browser/android/uma_utils.h" 24 #include "chrome/browser/android/uma_utils.h"
25 #include "chrome/browser/android/url_utilities.h" 25 #include "chrome/browser/android/url_utilities.h"
26 #include "chrome/browser/autofill/android/personal_data_manager_android.h" 26 #include "chrome/browser/autofill/android/personal_data_manager_android.h"
27 #include "chrome/browser/history/android/sqlite_cursor.h" 27 #include "chrome/browser/history/android/sqlite_cursor.h"
28 #include "chrome/browser/invalidation/invalidation_controller_android.h" 28 #include "chrome/browser/invalidation/invalidation_controller_android.h"
29 #include "chrome/browser/lifetime/application_lifetime_android.h" 29 #include "chrome/browser/lifetime/application_lifetime_android.h"
30 #include "chrome/browser/net/spdyproxy/data_reduction_proxy_settings_android.h"
30 #include "chrome/browser/profiles/profile_android.h" 31 #include "chrome/browser/profiles/profile_android.h"
31 #include "chrome/browser/search_engines/template_url_service_android.h" 32 #include "chrome/browser/search_engines/template_url_service_android.h"
32 #include "chrome/browser/signin/android_profile_oauth2_token_service.h" 33 #include "chrome/browser/signin/android_profile_oauth2_token_service.h"
33 #include "chrome/browser/speech/tts_android.h" 34 #include "chrome/browser/speech/tts_android.h"
34 #include "chrome/browser/sync/profile_sync_service_android.h" 35 #include "chrome/browser/sync/profile_sync_service_android.h"
35 #include "chrome/browser/ui/android/autofill/autofill_dialog_controller_android. h" 36 #include "chrome/browser/ui/android/autofill/autofill_dialog_controller_android. h"
36 #include "chrome/browser/ui/android/autofill/autofill_dialog_result.h" 37 #include "chrome/browser/ui/android/autofill/autofill_dialog_result.h"
37 #include "chrome/browser/ui/android/autofill/autofill_popup_view_android.h" 38 #include "chrome/browser/ui/android/autofill/autofill_popup_view_android.h"
38 #include "chrome/browser/ui/android/chrome_http_auth_handler.h" 39 #include "chrome/browser/ui/android/chrome_http_auth_handler.h"
39 #include "chrome/browser/ui/android/infobars/auto_login_infobar_delegate_android .h" 40 #include "chrome/browser/ui/android/infobars/auto_login_infobar_delegate_android .h"
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 { "JavascriptAppModalDialog", 97 { "JavascriptAppModalDialog",
97 JavascriptAppModalDialogAndroid::RegisterJavascriptAppModalDialog }, 98 JavascriptAppModalDialogAndroid::RegisterJavascriptAppModalDialog },
98 { "MostVisitedSites", RegisterMostVisitedSites }, 99 { "MostVisitedSites", RegisterMostVisitedSites },
99 {"NativeInfoBar", RegisterNativeInfoBar}, 100 {"NativeInfoBar", RegisterNativeInfoBar},
100 { "NavigationPopup", NavigationPopup::RegisterNavigationPopup }, 101 { "NavigationPopup", NavigationPopup::RegisterNavigationPopup },
101 { "OmniboxPrerender", RegisterOmniboxPrerender }, 102 { "OmniboxPrerender", RegisterOmniboxPrerender },
102 { "PersonalDataManagerAndroid", 103 { "PersonalDataManagerAndroid",
103 autofill::PersonalDataManagerAndroid::Register }, 104 autofill::PersonalDataManagerAndroid::Register },
104 { "ProfileAndroid", ProfileAndroid::RegisterProfileAndroid }, 105 { "ProfileAndroid", ProfileAndroid::RegisterProfileAndroid },
105 { "ProfileSyncService", ProfileSyncServiceAndroid::Register }, 106 { "ProfileSyncService", ProfileSyncServiceAndroid::Register },
107 { "DataReductionProxySettings", DataReductionProxySettingsAndroid::Register },
106 { "SigninManager", SigninManagerAndroid::Register }, 108 { "SigninManager", SigninManagerAndroid::Register },
107 { "SqliteCursor", SQLiteCursor::RegisterSqliteCursor }, 109 { "SqliteCursor", SQLiteCursor::RegisterSqliteCursor },
108 { "SSLClientCertificateRequest", RegisterSSLClientCertificateRequestAndroid }, 110 { "SSLClientCertificateRequest", RegisterSSLClientCertificateRequestAndroid },
109 { "StartupMetricUtils", RegisterStartupMetricUtils }, 111 { "StartupMetricUtils", RegisterStartupMetricUtils },
110 { "TabAndroid", TabAndroid::RegisterTabAndroid }, 112 { "TabAndroid", TabAndroid::RegisterTabAndroid },
111 { "TemplateUrlServiceAndroid", TemplateUrlServiceAndroid::Register }, 113 { "TemplateUrlServiceAndroid", TemplateUrlServiceAndroid::Register },
112 { "TranslateInfoBarDelegate", RegisterTranslateInfoBarDelegate}, 114 { "TranslateInfoBarDelegate", RegisterTranslateInfoBarDelegate},
113 { "TtsPlatformImpl", TtsPlatformImplAndroid::Register }, 115 { "TtsPlatformImpl", TtsPlatformImplAndroid::Register },
114 {"UrlUtilities", RegisterUrlUtilities}, 116 {"UrlUtilities", RegisterUrlUtilities},
115 { "ValidationMessageBubbleAndroid", 117 { "ValidationMessageBubbleAndroid",
116 ValidationMessageBubbleAndroid::Register }, 118 ValidationMessageBubbleAndroid::Register },
117 { "WebsiteSettingsPopupAndroid", 119 { "WebsiteSettingsPopupAndroid",
118 WebsiteSettingsPopupAndroid::RegisterWebsiteSettingsPopupAndroid }, 120 WebsiteSettingsPopupAndroid::RegisterWebsiteSettingsPopupAndroid },
119 }; 121 };
120 122
121 bool RegisterJni(JNIEnv* env) { 123 bool RegisterJni(JNIEnv* env) {
122 TRACE_EVENT0("startup", "chrome_android::RegisterJni"); 124 TRACE_EVENT0("startup", "chrome_android::RegisterJni");
123 return RegisterNativeMethods(env, kChromeRegisteredMethods, 125 return RegisterNativeMethods(env, kChromeRegisteredMethods,
124 arraysize(kChromeRegisteredMethods)); 126 arraysize(kChromeRegisteredMethods));
125 } 127 }
126 128
127 } // namespace android 129 } // namespace android
128 } // namespace chrome 130 } // namespace chrome
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698