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

Side by Side Diff: content/browser/android/browser_jni_registrar.cc

Issue 10697030: Register JNI for content_unittests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 8 years, 5 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 "content/app/android/content_jni_registrar.h" 5 #include "content/browser/android/browser_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 "content/app/android/content_main.h"
10 #include "content/app/android/sandboxed_process_service.h"
11 #include "content/app/android/user_agent.h"
12 #include "content/browser/android/android_browser_process.h" 9 #include "content/browser/android/android_browser_process.h"
13 #include "content/browser/android/content_settings.h" 10 #include "content/browser/android/content_settings.h"
14 #include "content/browser/android/content_view_client.h" 11 #include "content/browser/android/content_view_client.h"
15 #include "content/browser/android/content_view_impl.h" 12 #include "content/browser/android/content_view_impl.h"
16 #include "content/browser/android/device_info.h" 13 #include "content/browser/android/device_info.h"
17 #include "content/browser/android/download_controller.h" 14 #include "content/browser/android/download_controller.h"
18 #include "content/browser/android/sandboxed_process_launcher.h" 15 #include "content/browser/android/sandboxed_process_launcher.h"
19 #include "content/browser/android/touch_point.h" 16 #include "content/browser/android/touch_point.h"
20 #include "content/browser/geolocation/location_api_adapter_android.h" 17 #include "content/browser/geolocation/location_api_adapter_android.h"
21 #include "content/common/android/command_line.h" 18
22 #include "content/common/android/surface_callback.h" 19 namespace {
23 #include "content/common/android/trace_event_binding.h" 20 base::android::RegistrationMethod kContentRegisteredMethods[] = {
21 { "AndroidLocationApiAdapter",
22 AndroidLocationApiAdapter::RegisterGeolocationService },
23 { "AndroidBrowserProcess", content::RegisterAndroidBrowserProcess },
24 { "ContentSettings", content::ContentSettings::RegisterContentSettings },
25 { "ContentView", content::RegisterContentView },
26 { "ContentViewClient", content::RegisterContentViewClient },
27 { "DeviceInfo", content::RegisterDeviceInfo },
28 { "DownloadController",
29 content::DownloadController::RegisterDownloadController },
30 { "SandboxedProcessLauncher", content::RegisterSandboxedProcessLauncher },
31 { "TouchPoint", content::RegisterTouchPoint },
32 };
33
34 } // namespace
24 35
25 namespace content { 36 namespace content {
26 namespace android { 37 namespace android {
27 38
28 base::android::RegistrationMethod kContentRegisteredMethods[] = { 39 bool RegisterBrowserJni(JNIEnv* env) {
29 { "AndroidLocationApiAdapter",
30 AndroidLocationApiAdapter::RegisterGeolocationService },
31 { "AndroidBrowserProcess", content::RegisterAndroidBrowserProcess },
32 { "CommandLine", RegisterCommandLine },
33 { "ContentSettings", ContentSettings::RegisterContentSettings },
34 { "ContentView", RegisterContentView },
35 { "ContentViewClient", RegisterContentViewClient },
36 { "ContentMain", content::RegisterContentMain },
37 { "DeviceInfo", RegisterDeviceInfo },
38 { "DownloadController", DownloadController::RegisterDownloadController },
39 { "SandboxedProcessLauncher", content::RegisterSandboxedProcessLauncher },
40 { "SandboxedProcessService", content::RegisterSandboxedProcessService },
41 { "SurfaceCallback", content::RegisterSurfaceCallback },
42 { "TouchPoint", content::RegisterTouchPoint },
43 { "TraceEvent", RegisterTraceEvent },
44 { "UserAgent", content::RegisterUserAgent },
45 };
46
47 bool RegisterJni(JNIEnv* env) {
48 return RegisterNativeMethods(env, kContentRegisteredMethods, 40 return RegisterNativeMethods(env, kContentRegisteredMethods,
49 arraysize(kContentRegisteredMethods)); 41 arraysize(kContentRegisteredMethods));
50 } 42 }
51 43
52 } // namespace android 44 } // namespace android
53 } // namespace content 45 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/android/browser_jni_registrar.h ('k') | content/common/android/common_jni_registrar.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698