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

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

Issue 1376563003: Revert of [BackgroundSync] Trigger Background Sync events when Chrome is backgrounded on Android (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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 "content/browser/android/browser_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/browser/accessibility/browser_accessibility_android.h" 9 #include "content/browser/accessibility/browser_accessibility_android.h"
10 #include "content/browser/accessibility/browser_accessibility_manager_android.h" 10 #include "content/browser/accessibility/browser_accessibility_manager_android.h"
11 #include "content/browser/android/background_sync_launcher_android.h" 11 #include "content/browser/android/background_sync_launcher_android.h"
12 #include "content/browser/android/background_sync_network_observer_android.h"
13 #include "content/browser/android/browser_startup_controller.h" 12 #include "content/browser/android/browser_startup_controller.h"
14 #include "content/browser/android/child_process_launcher_android.h" 13 #include "content/browser/android/child_process_launcher_android.h"
15 #include "content/browser/android/composited_touch_handle_drawable.h" 14 #include "content/browser/android/composited_touch_handle_drawable.h"
16 #include "content/browser/android/content_readback_handler.h" 15 #include "content/browser/android/content_readback_handler.h"
17 #include "content/browser/android/content_video_view.h" 16 #include "content/browser/android/content_video_view.h"
18 #include "content/browser/android/content_view_core_impl.h" 17 #include "content/browser/android/content_view_core_impl.h"
19 #include "content/browser/android/content_view_render_view.h" 18 #include "content/browser/android/content_view_render_view.h"
20 #include "content/browser/android/content_view_statics.h" 19 #include "content/browser/android/content_view_statics.h"
21 #include "content/browser/android/date_time_chooser_android.h" 20 #include "content/browser/android/date_time_chooser_android.h"
22 #include "content/browser/android/download_controller_android_impl.h" 21 #include "content/browser/android/download_controller_android_impl.h"
(...skipping 21 matching lines...) Expand all
44 #include "content/browser/vr/android/cardboard/cardboard_vr_device.h" 43 #include "content/browser/vr/android/cardboard/cardboard_vr_device.h"
45 #include "content/browser/web_contents/web_contents_android.h" 44 #include "content/browser/web_contents/web_contents_android.h"
46 #include "mojo/android/system/core_impl.h" 45 #include "mojo/android/system/core_impl.h"
47 46
48 namespace { 47 namespace {
49 base::android::RegistrationMethod kContentRegisteredMethods[] = { 48 base::android::RegistrationMethod kContentRegisteredMethods[] = {
50 {"AndroidLocationApiAdapter", 49 {"AndroidLocationApiAdapter",
51 content::AndroidLocationApiAdapter::RegisterGeolocationService}, 50 content::AndroidLocationApiAdapter::RegisterGeolocationService},
52 {"BackgroundSyncLauncherAndroid", 51 {"BackgroundSyncLauncherAndroid",
53 content::BackgroundSyncLauncherAndroid::RegisterLauncher}, 52 content::BackgroundSyncLauncherAndroid::RegisterLauncher},
54 {"BackgroundSyncNetworkObserverAndroid",
55 content::BackgroundSyncNetworkObserverAndroid::Observer::
56 RegisterNetworkObserver},
57 {"BrowserAccessibilityManager", 53 {"BrowserAccessibilityManager",
58 content::RegisterBrowserAccessibilityManager}, 54 content::RegisterBrowserAccessibilityManager},
59 {"BrowserStartupController", content::RegisterBrowserStartupController}, 55 {"BrowserStartupController", content::RegisterBrowserStartupController},
60 #if defined(ENABLE_WEBVR) 56 #if defined(ENABLE_WEBVR)
61 {"CardboardVRDevice", 57 {"CardboardVRDevice",
62 content::CardboardVRDevice::RegisterCardboardVRDevice}, 58 content::CardboardVRDevice::RegisterCardboardVRDevice},
63 #endif 59 #endif
64 {"ChildProcessLauncher", content::RegisterChildProcessLauncher}, 60 {"ChildProcessLauncher", content::RegisterChildProcessLauncher},
65 {"ContentReadbackHandler", 61 {"ContentReadbackHandler",
66 content::ContentReadbackHandler::RegisterContentReadbackHandler}, 62 content::ContentReadbackHandler::RegisterContentReadbackHandler},
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 namespace content { 111 namespace content {
116 namespace android { 112 namespace android {
117 113
118 bool RegisterBrowserJni(JNIEnv* env) { 114 bool RegisterBrowserJni(JNIEnv* env) {
119 return RegisterNativeMethods(env, kContentRegisteredMethods, 115 return RegisterNativeMethods(env, kContentRegisteredMethods,
120 arraysize(kContentRegisteredMethods)); 116 arraysize(kContentRegisteredMethods));
121 } 117 }
122 118
123 } // namespace android 119 } // namespace android
124 } // namespace content 120 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698