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

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: Move BackgroundSyncNetworkObserverAndroid destructor to satisfy the compiler Created 5 years, 3 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 20 matching lines...) Expand all
42 #include "content/browser/time_zone_monitor_android.h" 43 #include "content/browser/time_zone_monitor_android.h"
43 #include "content/browser/web_contents/web_contents_android.h" 44 #include "content/browser/web_contents/web_contents_android.h"
44 #include "mojo/android/system/core_impl.h" 45 #include "mojo/android/system/core_impl.h"
45 46
46 namespace { 47 namespace {
47 base::android::RegistrationMethod kContentRegisteredMethods[] = { 48 base::android::RegistrationMethod kContentRegisteredMethods[] = {
48 {"AndroidLocationApiAdapter", 49 {"AndroidLocationApiAdapter",
49 content::AndroidLocationApiAdapter::RegisterGeolocationService}, 50 content::AndroidLocationApiAdapter::RegisterGeolocationService},
50 {"BackgroundSyncLauncherAndroid", 51 {"BackgroundSyncLauncherAndroid",
51 content::BackgroundSyncLauncherAndroid::RegisterLauncher}, 52 content::BackgroundSyncLauncherAndroid::RegisterLauncher},
53 {"BackgroundSyncNetworkObserverAndroid",
54 content::BackgroundSyncNetworkObserverAndroid::RegisterNetworkObserver},
52 {"BrowserAccessibilityManager", 55 {"BrowserAccessibilityManager",
53 content::RegisterBrowserAccessibilityManager}, 56 content::RegisterBrowserAccessibilityManager},
54 {"BrowserStartupController", content::RegisterBrowserStartupController}, 57 {"BrowserStartupController", content::RegisterBrowserStartupController},
55 {"ChildProcessLauncher", content::RegisterChildProcessLauncher}, 58 {"ChildProcessLauncher", content::RegisterChildProcessLauncher},
56 {"ContentReadbackHandler", 59 {"ContentReadbackHandler",
57 content::ContentReadbackHandler::RegisterContentReadbackHandler}, 60 content::ContentReadbackHandler::RegisterContentReadbackHandler},
58 {"ContentVideoView", content::ContentVideoView::RegisterContentVideoView}, 61 {"ContentVideoView", content::ContentVideoView::RegisterContentVideoView},
59 {"ContentViewCore", content::RegisterContentViewCore}, 62 {"ContentViewCore", content::RegisterContentViewCore},
60 {"ContentViewRenderView", 63 {"ContentViewRenderView",
61 content::ContentViewRenderView::RegisterContentViewRenderView}, 64 content::ContentViewRenderView::RegisterContentViewRenderView},
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 namespace content { 109 namespace content {
107 namespace android { 110 namespace android {
108 111
109 bool RegisterBrowserJni(JNIEnv* env) { 112 bool RegisterBrowserJni(JNIEnv* env) {
110 return RegisterNativeMethods(env, kContentRegisteredMethods, 113 return RegisterNativeMethods(env, kContentRegisteredMethods,
111 arraysize(kContentRegisteredMethods)); 114 arraysize(kContentRegisteredMethods));
112 } 115 }
113 116
114 } // namespace android 117 } // namespace android
115 } // namespace content 118 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698