| 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 #ifndef SyncManager_h | 5 #ifndef SyncManager_h |
| 6 #define SyncManager_h | 6 #define SyncManager_h |
| 7 | 7 |
| 8 #include "bindings/core/v8/ScriptWrappable.h" | 8 #include "bindings/core/v8/ScriptWrappable.h" |
| 9 #include "platform/heap/Handle.h" | 9 #include "platform/heap/Handle.h" |
| 10 #include "public/platform/modules/background_sync/background_sync.mojom-blink.h" | 10 #include "public/platform/modules/background_sync/background_sync.mojom-blink.h" |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 // is called. | 42 // is called. |
| 43 const mojom::blink::BackgroundSyncServicePtr& getBackgroundSyncServicePtr(); | 43 const mojom::blink::BackgroundSyncServicePtr& getBackgroundSyncServicePtr(); |
| 44 | 44 |
| 45 // Callbacks | 45 // Callbacks |
| 46 static void registerCallback(ScriptPromiseResolver*, | 46 static void registerCallback(ScriptPromiseResolver*, |
| 47 mojom::blink::BackgroundSyncError, | 47 mojom::blink::BackgroundSyncError, |
| 48 mojom::blink::SyncRegistrationPtr options); | 48 mojom::blink::SyncRegistrationPtr options); |
| 49 static void getRegistrationsCallback( | 49 static void getRegistrationsCallback( |
| 50 ScriptPromiseResolver*, | 50 ScriptPromiseResolver*, |
| 51 mojom::blink::BackgroundSyncError, | 51 mojom::blink::BackgroundSyncError, |
| 52 mojo::WTFArray<mojom::blink::SyncRegistrationPtr> registrations); | 52 WTF::Vector<mojom::blink::SyncRegistrationPtr> registrations); |
| 53 | 53 |
| 54 Member<ServiceWorkerRegistration> m_registration; | 54 Member<ServiceWorkerRegistration> m_registration; |
| 55 mojom::blink::BackgroundSyncServicePtr m_backgroundSyncService; | 55 mojom::blink::BackgroundSyncServicePtr m_backgroundSyncService; |
| 56 }; | 56 }; |
| 57 | 57 |
| 58 } // namespace blink | 58 } // namespace blink |
| 59 | 59 |
| 60 #endif // SyncManager_h | 60 #endif // SyncManager_h |
| OLD | NEW |