diff options
author | iclelland <iclelland@chromium.org> | 2015-07-22 08:53:52 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-07-22 15:54:36 +0000 |
commit | 022985a303ea89b8aae001e86ea6855c25b1ab11 (patch) | |
tree | d090e4f6bc9c27da244c66fd321b848e37bdbbf5 /content/renderer/background_sync | |
parent | 1de14b7cca17b250b80826b73bcea754b345a556 (diff) | |
download | chromium_src-022985a303ea89b8aae001e86ea6855c25b1ab11.zip chromium_src-022985a303ea89b8aae001e86ea6855c25b1ab11.tar.gz chromium_src-022985a303ea89b8aae001e86ea6855c25b1ab11.tar.bz2 |
[Background Sync] Sent sync registration details to worker
This sends the details of a fired sync event from the BackgroundSyncManager down
to the running service worker.
This is part 2 of a three-part blink-chromium-blink dance:
Part 1: https://codereview.chromium.org/1220223003/
Part 2: [This one]
Part 3: https://codereview.chromium.org/1231743004/
BUG=482066
Review URL: https://codereview.chromium.org/1230213004
Cr-Commit-Position: refs/heads/master@{#339882}
Diffstat (limited to 'content/renderer/background_sync')
-rw-r--r-- | content/renderer/background_sync/background_sync_client_impl.cc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/content/renderer/background_sync/background_sync_client_impl.cc b/content/renderer/background_sync/background_sync_client_impl.cc index 997b476..2eb1c400 100644 --- a/content/renderer/background_sync/background_sync_client_impl.cc +++ b/content/renderer/background_sync/background_sync_client_impl.cc @@ -4,7 +4,9 @@ #include "content/renderer/background_sync/background_sync_client_impl.h" +#include "content/child/background_sync/background_sync_type_converters.h" #include "content/renderer/service_worker/service_worker_context_client.h" +#include "third_party/WebKit/public/platform/modules/background_sync/WebSyncRegistration.h" namespace content { @@ -28,7 +30,9 @@ void BackgroundSyncClientImpl::Sync(content::SyncRegistrationPtr registration, callback.Run(SERVICE_WORKER_EVENT_STATUS_ABORTED); return; } - client->DispatchSyncEvent(callback); + scoped_ptr<blink::WebSyncRegistration> reg = + mojo::ConvertTo<scoped_ptr<blink::WebSyncRegistration>>(registration); + client->DispatchSyncEvent(*reg, callback); } } // namespace content |