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

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

Issue 11365199: Move WebContentsDelegateAndroid to content/components (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase. 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
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/component/web_contents_delegate_android/component_jni_r egistrar.h"
16 #include "chrome/browser/history/android/sqlite_cursor.h" 15 #include "chrome/browser/history/android/sqlite_cursor.h"
17 #include "chrome/browser/ui/android/autofill/autofill_external_delegate.h" 16 #include "chrome/browser/ui/android/autofill/autofill_external_delegate.h"
18 #include "chrome/browser/ui/android/chrome_http_auth_handler.h" 17 #include "chrome/browser/ui/android/chrome_http_auth_handler.h"
19 #include "chrome/browser/ui/android/javascript_app_modal_dialog_android.h" 18 #include "chrome/browser/ui/android/javascript_app_modal_dialog_android.h"
20 #include "content/components/navigation_interception/component_jni_registrar.h" 19 #include "content/components/navigation_interception/component_jni_registrar.h"
20 #include "content/components/web_contents_delegate_android/component_jni_registr ar.h"
21 21
22 namespace chrome { 22 namespace chrome {
23 namespace android { 23 namespace android {
24 24
25 static base::android::RegistrationMethod kChromeRegisteredMethods[] = { 25 static base::android::RegistrationMethod kChromeRegisteredMethods[] = {
26 { "AutofillExternalDelegate", 26 { "AutofillExternalDelegate",
27 AutofillExternalDelegateAndroid::RegisterAutofillExternalDelegate}, 27 AutofillExternalDelegateAndroid::RegisterAutofillExternalDelegate},
28 { "ChromeBrowserProvider", 28 { "ChromeBrowserProvider",
29 ChromeBrowserProvider::RegisterChromeBrowserProvider }, 29 ChromeBrowserProvider::RegisterChromeBrowserProvider },
30 { "ChromeHttpAuthHandler", 30 { "ChromeHttpAuthHandler",
31 ChromeHttpAuthHandler::RegisterChromeHttpAuthHandler }, 31 ChromeHttpAuthHandler::RegisterChromeHttpAuthHandler },
32 { "ChromeWebContentsDelegateAndroid", 32 { "ChromeWebContentsDelegateAndroid",
33 RegisterChromeWebContentsDelegateAndroid }, 33 RegisterChromeWebContentsDelegateAndroid },
34 { "ContentViewUtil", RegisterContentViewUtil }, 34 { "ContentViewUtil", RegisterContentViewUtil },
35 { "DevToolsServer", RegisterDevToolsServer }, 35 { "DevToolsServer", RegisterDevToolsServer },
36 { "IntentHelper", RegisterIntentHelper }, 36 { "IntentHelper", RegisterIntentHelper },
37 { "JavascriptAppModalDialog", 37 { "JavascriptAppModalDialog",
38 JavascriptAppModalDialogAndroid::RegisterJavascriptAppModalDialog }, 38 JavascriptAppModalDialogAndroid::RegisterJavascriptAppModalDialog },
39 { "ProcessUtils", RegisterProcessUtils }, 39 { "ProcessUtils", RegisterProcessUtils },
40 { "SqliteCursor", SQLiteCursor::RegisterSqliteCursor }, 40 { "SqliteCursor", SQLiteCursor::RegisterSqliteCursor },
41 { "navigation_interception", content::RegisterNavigationInterceptionJni }, 41 { "navigation_interception", content::RegisterNavigationInterceptionJni },
42 }; 42 };
43 43
44 bool RegisterJni(JNIEnv* env) { 44 bool RegisterJni(JNIEnv* env) {
45 web_contents_delegate_android::RegisterJni(env); 45 content::RegisterWebContentsDelegateAndroidJni(env);
46 return RegisterNativeMethods(env, kChromeRegisteredMethods, 46 return RegisterNativeMethods(env, kChromeRegisteredMethods,
47 arraysize(kChromeRegisteredMethods)); 47 arraysize(kChromeRegisteredMethods));
48 } 48 }
49 49
50 } // namespace android 50 } // namespace android
51 } // namespace chrome 51 } // namespace chrome
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698