Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/renderer/background_sync/background_sync_client_impl.h" | 5 #include "content/renderer/background_sync/background_sync_client_impl.h" |
| 6 | 6 |
| 7 #include <utility> | 7 #include <utility> |
| 8 | 8 |
| 9 #include "base/time/time.h" | 9 #include "base/time/time.h" |
| 10 #include "content/child/background_sync/background_sync_provider.h" | |
|
iclelland
2016/11/14 18:43:07
Thanks for cleaning those up.
| |
| 11 #include "content/child/background_sync/background_sync_type_converters.h" | 10 #include "content/child/background_sync/background_sync_type_converters.h" |
| 12 #include "content/renderer/service_worker/service_worker_context_client.h" | 11 #include "content/renderer/service_worker/service_worker_context_client.h" |
| 13 #include "mojo/public/cpp/bindings/strong_binding.h" | 12 #include "mojo/public/cpp/bindings/strong_binding.h" |
| 14 #include "third_party/WebKit/public/platform/Platform.h" | 13 #include "third_party/WebKit/public/platform/Platform.h" |
| 15 #include "third_party/WebKit/public/platform/WebThread.h" | 14 #include "third_party/WebKit/public/platform/WebThread.h" |
| 16 #include "third_party/WebKit/public/platform/modules/background_sync/WebSyncProv ider.h" | |
| 17 #include "third_party/WebKit/public/platform/modules/background_sync/WebSyncRegi stration.h" | |
| 18 #include "third_party/WebKit/public/web/modules/serviceworker/WebServiceWorkerCo ntextProxy.h" | 15 #include "third_party/WebKit/public/web/modules/serviceworker/WebServiceWorkerCo ntextProxy.h" |
| 19 | 16 |
| 20 namespace content { | 17 namespace content { |
| 21 | 18 |
| 22 // static | 19 // static |
| 23 void BackgroundSyncClientImpl::Create( | 20 void BackgroundSyncClientImpl::Create( |
| 24 mojo::InterfaceRequest<blink::mojom::BackgroundSyncServiceClient> request) { | 21 mojo::InterfaceRequest<blink::mojom::BackgroundSyncServiceClient> request) { |
| 25 mojo::MakeStrongBinding(base::WrapUnique(new BackgroundSyncClientImpl), | 22 mojo::MakeStrongBinding(base::WrapUnique(new BackgroundSyncClientImpl), |
| 26 std::move(request)); | 23 std::move(request)); |
| 27 } | 24 } |
| (...skipping 17 matching lines...) Expand all Loading... | |
| 45 } | 42 } |
| 46 | 43 |
| 47 blink::WebServiceWorkerContextProxy::LastChanceOption web_last_chance = | 44 blink::WebServiceWorkerContextProxy::LastChanceOption web_last_chance = |
| 48 mojo::ConvertTo<blink::WebServiceWorkerContextProxy::LastChanceOption>( | 45 mojo::ConvertTo<blink::WebServiceWorkerContextProxy::LastChanceOption>( |
| 49 last_chance); | 46 last_chance); |
| 50 | 47 |
| 51 client->DispatchSyncEvent(tag, web_last_chance, callback); | 48 client->DispatchSyncEvent(tag, web_last_chance, callback); |
| 52 } | 49 } |
| 53 | 50 |
| 54 } // namespace content | 51 } // namespace content |
| OLD | NEW |