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

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

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

Powered by Google App Engine
This is Rietveld 408576698