[BackgroundSync] Fire one-shot events
commit81e977f894c3c8d8f7aec029112ea63b4f7a4def
authorjkarlin <jkarlin@chromium.org>
Fri, 1 May 2015 15:53:04 +0000 (1 08:53 -0700)
committerCommit bot <commit-bot@chromium.org>
Fri, 1 May 2015 15:53:43 +0000 (1 15:53 +0000)
treeea31c2dc00ee33078a7b6d9628c1b0f8815954e1
parente0f483cccb47b51c960d2015dab086c9ffb0994d
[BackgroundSync] Fire one-shot events

Fires one-shot events.

* Checks for ready events to fire on network change
* Checks for ready events to fire on registration
* A successful event will unregister itself after firing
* A failed event will not fire again until a controlled page load (that is for a future CL)
* Lots and lots of tests!

BUG=479665

Review URL: https://codereview.chromium.org/1106523002

Cr-Commit-Position: refs/heads/master@{#327911}
content/browser/background_sync/background_sync.proto
content/browser/background_sync/background_sync_manager.cc
content/browser/background_sync/background_sync_manager.h
content/browser/background_sync/background_sync_manager_unittest.cc