| Index: third_party/WebKit/Source/modules/background_sync/BackgroundSyncProvider.h
|
| diff --git a/third_party/WebKit/Source/modules/background_sync/BackgroundSyncProvider.h b/third_party/WebKit/Source/modules/background_sync/BackgroundSyncProvider.h
|
| deleted file mode 100644
|
| index 7932366578cef2038c4f75325dcafca56ea4cf1f..0000000000000000000000000000000000000000
|
| --- a/third_party/WebKit/Source/modules/background_sync/BackgroundSyncProvider.h
|
| +++ /dev/null
|
| @@ -1,53 +0,0 @@
|
| -// 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 BackgroundSyncProvider_h
|
| -#define BackgroundSyncProvider_h
|
| -
|
| -#include "public/platform/modules/background_sync/background_sync.mojom-blink.h"
|
| -#include "wtf/Noncopyable.h"
|
| -
|
| -namespace blink {
|
| -
|
| -class ScriptPromiseResolver;
|
| -class WebServiceWorkerRegistration;
|
| -
|
| -// The BackgroundSyncProvider is called by the SyncManager and SyncRegistration
|
| -// objects and communicates with the BackgroundSyncManager object in the browser
|
| -// process. Each thread will have its own instance (e.g. main thread, worker
|
| -// threads), instantiated as needed by SyncManager. Each instance of the
|
| -// provider creates a new mojo connection to a new BackgroundSyncManagerImpl,
|
| -// which then talks to the BackgroundSyncManager object.
|
| -class BackgroundSyncProvider {
|
| - WTF_MAKE_NONCOPYABLE(BackgroundSyncProvider);
|
| -
|
| - public:
|
| - BackgroundSyncProvider() = default;
|
| -
|
| - void registerBackgroundSync(mojom::blink::SyncRegistrationPtr options,
|
| - WebServiceWorkerRegistration*,
|
| - ScriptPromiseResolver*);
|
| - void getRegistrations(WebServiceWorkerRegistration*, ScriptPromiseResolver*);
|
| -
|
| - private:
|
| - // Callback handlers
|
| - static void registerCallback(ScriptPromiseResolver*,
|
| - mojom::blink::BackgroundSyncError,
|
| - mojom::blink::SyncRegistrationPtr options);
|
| - static void getRegistrationsCallback(
|
| - ScriptPromiseResolver*,
|
| - mojom::blink::BackgroundSyncError,
|
| - mojo::WTFArray<mojom::blink::SyncRegistrationPtr> registrations);
|
| -
|
| - // Returns an initialized BackgroundSyncServicePtr. A connection with the
|
| - // the browser's BackgroundSyncService is created the first time this method
|
| - // is called.
|
| - mojom::blink::BackgroundSyncServicePtr& GetBackgroundSyncServicePtr();
|
| -
|
| - mojom::blink::BackgroundSyncServicePtr m_backgroundSyncService;
|
| -};
|
| -
|
| -} // namespace blink
|
| -
|
| -#endif // BackgroundSyncProvider_h
|
|
|