| Index: third_party/WebKit/Source/modules/background_sync/BackgroundSyncClientImpl.h
|
| diff --git a/third_party/WebKit/Source/modules/background_sync/BackgroundSyncClientImpl.h b/third_party/WebKit/Source/modules/background_sync/BackgroundSyncClientImpl.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..03c5df3650d0dcb4bf38102e4f11b0c583d89371
|
| --- /dev/null
|
| +++ b/third_party/WebKit/Source/modules/background_sync/BackgroundSyncClientImpl.h
|
| @@ -0,0 +1,39 @@
|
| +// Copyright 2016 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#ifndef BackgroundSyncClientImpl_h
|
| +#define BackgroundSyncClientImpl_h
|
| +
|
| +#include "base/macros.h"
|
| +#include "modules/serviceworkers/ServiceWorkerGlobalScope.h"
|
| +#include "public/platform/WebCommon.h"
|
| +#include "public/platform/modules/background_sync/background_sync.mojom-blink.h"
|
| +#include "wtf/Compiler.h"
|
| +
|
| +namespace blink {
|
| +
|
| +class BLINK_EXPORT BackgroundSyncClientImpl
|
| + : public WTF_NON_EXPORTED_BASE(mojom::blink::BackgroundSyncServiceClient) {
|
| + public:
|
| + static void Create(ServiceWorkerGlobalScope*,
|
| + mojom::blink::BackgroundSyncServiceClientRequest);
|
| +
|
| + ~BackgroundSyncClientImpl() override;
|
| +
|
| + private:
|
| + BackgroundSyncClientImpl(ServiceWorkerGlobalScope*);
|
| +
|
| + // BackgroundSyncServiceClient methods:
|
| + void Sync(const WTF::String& tag,
|
| + mojom::blink::BackgroundSyncEventLastChance,
|
| + const SyncCallback&) override;
|
| +
|
| + CrossThreadPersistent<ServiceWorkerGlobalScope> m_globalScope;
|
| +
|
| + DISALLOW_COPY_AND_ASSIGN(BackgroundSyncClientImpl);
|
| +};
|
| +
|
| +} // namespace blink
|
| +
|
| +#endif // BackgroundSyncClientImpl_h
|
|
|