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

Unified Diff: content/browser/background_sync/background_sync_manager.h

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: Switch to single autodetect, register native observers, change observer creation pattern 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/background_sync/background_sync_manager.h
diff --git a/content/browser/background_sync/background_sync_manager.h b/content/browser/background_sync/background_sync_manager.h
index 673f41f98cb1f2733d7f767964063a048e875f5c..884a6dfb8546a141a11d695341f8c50cb6b40914 100644
--- a/content/browser/background_sync/background_sync_manager.h
+++ b/content/browser/background_sync/background_sync_manager.h
@@ -96,6 +96,10 @@ class CONTENT_EXPORT BackgroundSyncManager
const GURL& pattern) override;
void OnStorageWiped() override;
+ BackgroundSyncNetworkObserver* GetNetworkObserverForTesting() {
+ return network_observer_.get();
+ }
+
protected:
// A registration might be referenced by the client longer than
// the BackgroundSyncManager needs to keep track of it (e.g., the event has
@@ -327,6 +331,7 @@ class CONTENT_EXPORT BackgroundSyncManager
const StatusCallback& callback);
SWIdToRegistrationsMap active_registrations_;
+
jkarlin 2015/09/19 00:16:07 Delete new line
iclelland 2015/09/21 18:49:30 Done.
CacheStorageScheduler op_scheduler_;
scoped_refptr<ServiceWorkerContextWrapper> service_worker_context_;
bool disabled_;

Powered by Google App Engine
This is Rietveld 408576698