| OLD | NEW |
| (Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef BackgroundSyncClientImpl_h |
| 6 #define BackgroundSyncClientImpl_h |
| 7 |
| 8 #include "base/macros.h" |
| 9 #include "modules/serviceworkers/ServiceWorkerGlobalScope.h" |
| 10 #include "public/platform/WebCommon.h" |
| 11 #include "public/platform/modules/background_sync/background_sync.mojom-blink.h" |
| 12 #include "wtf/Compiler.h" |
| 13 |
| 14 namespace blink { |
| 15 |
| 16 class BLINK_EXPORT BackgroundSyncClientImpl |
| 17 : public WTF_NON_EXPORTED_BASE(mojom::blink::BackgroundSyncServiceClient) { |
| 18 public: |
| 19 static void Create(ServiceWorkerGlobalScope*, |
| 20 mojom::blink::BackgroundSyncServiceClientRequest); |
| 21 |
| 22 ~BackgroundSyncClientImpl() override; |
| 23 |
| 24 private: |
| 25 BackgroundSyncClientImpl(ServiceWorkerGlobalScope*); |
| 26 |
| 27 // BackgroundSyncServiceClient methods: |
| 28 void Sync(const WTF::String& tag, |
| 29 mojom::blink::BackgroundSyncEventLastChance, |
| 30 const SyncCallback&) override; |
| 31 |
| 32 CrossThreadPersistent<ServiceWorkerGlobalScope> m_globalScope; |
| 33 |
| 34 DISALLOW_COPY_AND_ASSIGN(BackgroundSyncClientImpl); |
| 35 }; |
| 36 |
| 37 } // namespace blink |
| 38 |
| 39 #endif // BackgroundSyncClientImpl_h |
| OLD | NEW |