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

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

Issue 11275092: Add registration of chrome_http_auth_handler. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 1 month 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 | no next file » | 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/google_location_settings_helper.h" 12 #include "chrome/browser/android/google_location_settings_helper.h"
13 #include "chrome/browser/android/google_location_settings_helper_factory.h" 13 #include "chrome/browser/android/google_location_settings_helper_factory.h"
14 #include "chrome/browser/android/intent_helper.h" 14 #include "chrome/browser/android/intent_helper.h"
15 #include "chrome/browser/android/process_utils.h" 15 #include "chrome/browser/android/process_utils.h"
16 #include "chrome/browser/android/provider/chrome_browser_provider.h" 16 #include "chrome/browser/android/provider/chrome_browser_provider.h"
17 #include "chrome/browser/component/navigation_interception/component_jni_registr ar.h" 17 #include "chrome/browser/component/navigation_interception/component_jni_registr ar.h"
18 #include "chrome/browser/component/web_contents_delegate_android/component_jni_r egistrar.h" 18 #include "chrome/browser/component/web_contents_delegate_android/component_jni_r egistrar.h"
19 #include "chrome/browser/history/android/sqlite_cursor.h" 19 #include "chrome/browser/history/android/sqlite_cursor.h"
20 #include "chrome/browser/ui/android/autofill/autofill_external_delegate.h" 20 #include "chrome/browser/ui/android/autofill/autofill_external_delegate.h"
21 #include "chrome/browser/ui/android/chrome_http_auth_handler.h"
21 #include "chrome/browser/ui/android/javascript_app_modal_dialog_android.h" 22 #include "chrome/browser/ui/android/javascript_app_modal_dialog_android.h"
22 23
23 namespace chrome { 24 namespace chrome {
24 namespace android { 25 namespace android {
25 26
26 static base::android::RegistrationMethod kChromeRegisteredMethods[] = { 27 static base::android::RegistrationMethod kChromeRegisteredMethods[] = {
27 { "AutofillExternalDelegate", 28 { "AutofillExternalDelegate",
28 AutofillExternalDelegateAndroid::RegisterAutofillExternalDelegate}, 29 AutofillExternalDelegateAndroid::RegisterAutofillExternalDelegate},
29 { "ChromeBrowserProvider", 30 { "ChromeBrowserProvider",
30 ChromeBrowserProvider::RegisterChromeBrowserProvider }, 31 ChromeBrowserProvider::RegisterChromeBrowserProvider },
32 { "ChromeHttpAuthHandler",
33 ChromeHttpAuthHandler::RegisterChromeHttpAuthHandler },
31 { "ChromeWebContentsDelegateAndroid", 34 { "ChromeWebContentsDelegateAndroid",
32 RegisterChromeWebContentsDelegateAndroid }, 35 RegisterChromeWebContentsDelegateAndroid },
33 { "ContentViewUtil", RegisterContentViewUtil }, 36 { "ContentViewUtil", RegisterContentViewUtil },
34 { "DevToolsServer", RegisterDevToolsServer }, 37 { "DevToolsServer", RegisterDevToolsServer },
35 { "GoogleLocationSettingsHelper", 38 { "GoogleLocationSettingsHelper",
36 GoogleLocationSettingsHelper::Register }, 39 GoogleLocationSettingsHelper::Register },
37 { "GoogleLocationSettingsHelperFactory", 40 { "GoogleLocationSettingsHelperFactory",
38 GoogleLocationSettingsHelperFactory::Register }, 41 GoogleLocationSettingsHelperFactory::Register },
39 { "IntentHelper", RegisterIntentHelper }, 42 { "IntentHelper", RegisterIntentHelper },
40 { "JavascriptAppModalDialog", 43 { "JavascriptAppModalDialog",
41 JavascriptAppModalDialogAndroid::RegisterJavascriptAppModalDialog }, 44 JavascriptAppModalDialogAndroid::RegisterJavascriptAppModalDialog },
42 { "ProcessUtils", RegisterProcessUtils }, 45 { "ProcessUtils", RegisterProcessUtils },
43 { "SqliteCursor", SQLiteCursor::RegisterSqliteCursor }, 46 { "SqliteCursor", SQLiteCursor::RegisterSqliteCursor },
44 { "navigation_interception", navigation_interception::RegisterJni }, 47 { "navigation_interception", navigation_interception::RegisterJni },
45 }; 48 };
46 49
47 bool RegisterJni(JNIEnv* env) { 50 bool RegisterJni(JNIEnv* env) {
48 web_contents_delegate_android::RegisterJni(env); 51 web_contents_delegate_android::RegisterJni(env);
49 return RegisterNativeMethods(env, kChromeRegisteredMethods, 52 return RegisterNativeMethods(env, kChromeRegisteredMethods,
50 arraysize(kChromeRegisteredMethods)); 53 arraysize(kChromeRegisteredMethods));
51 } 54 }
52 55
53 } // namespace android 56 } // namespace android
54 } // namespace chrome 57 } // namespace chrome
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698