| Index: third_party/WebKit/Source/modules/background_sync/SyncCallbacks.h
|
| diff --git a/third_party/WebKit/Source/modules/background_sync/SyncCallbacks.h b/third_party/WebKit/Source/modules/background_sync/SyncCallbacks.h
|
| deleted file mode 100644
|
| index d1df2ad22d3005e8fa96c34a371d77b89df4957a..0000000000000000000000000000000000000000
|
| --- a/third_party/WebKit/Source/modules/background_sync/SyncCallbacks.h
|
| +++ /dev/null
|
| @@ -1,79 +0,0 @@
|
| -// Copyright 2015 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 SyncCallbacks_h
|
| -#define SyncCallbacks_h
|
| -
|
| -#include "platform/heap/Handle.h"
|
| -#include "public/platform/WebCallbacks.h"
|
| -#include "public/platform/modules/background_sync/background_sync.mojom-blink.h"
|
| -#include "wtf/Noncopyable.h"
|
| -#include "wtf/PassRefPtr.h"
|
| -#include "wtf/RefPtr.h"
|
| -
|
| -namespace blink {
|
| -
|
| -class ServiceWorkerRegistration;
|
| -class ScriptPromiseResolver;
|
| -struct WebSyncError;
|
| -struct WebSyncRegistration;
|
| -
|
| -// SyncRegistrationCallbacks is an implementation of
|
| -// WebSyncRegistrationCallbacks that will resolve the underlying promise
|
| -// depending on the result passed to the callback. It takes a
|
| -// ServiceWorkerRegistration in its constructor and will pass it to the
|
| -// SyncRegistration.
|
| -class SyncRegistrationCallbacks final
|
| - : public WebCallbacks<blink::mojom::blink::SyncRegistrationPtr,
|
| - const WebSyncError&> {
|
| - WTF_MAKE_NONCOPYABLE(SyncRegistrationCallbacks);
|
| - // FIXME(tasak): When making public/platform classes to use PartitionAlloc,
|
| - // the following macro should be moved to WebCallbacks defined in
|
| - // public/platform/WebCallbacks.h.
|
| - USING_FAST_MALLOC(SyncRegistrationCallbacks);
|
| -
|
| - public:
|
| - SyncRegistrationCallbacks(ScriptPromiseResolver*, ServiceWorkerRegistration*);
|
| - ~SyncRegistrationCallbacks() override;
|
| -
|
| - void onSuccess(blink::mojom::blink::SyncRegistrationPtr) override;
|
| - void onError(const WebSyncError&) override;
|
| -
|
| - private:
|
| - Persistent<ScriptPromiseResolver> m_resolver;
|
| - Persistent<ServiceWorkerRegistration> m_serviceWorkerRegistration;
|
| -};
|
| -
|
| -// SyncGetRegistrationsCallbacks is an implementation of
|
| -// WebSyncGetRegistrationsCallbacks that will resolve the underlying promise
|
| -// depending on the result passed to the callback. It takes a
|
| -// ServiceWorkerRegistration in its constructor and will pass it to the
|
| -// SyncRegistration.
|
| -class SyncGetRegistrationsCallbacks final
|
| - : public WebCallbacks<
|
| - const WebVector<blink::mojom::blink::SyncRegistration*>&,
|
| - const WebSyncError&> {
|
| - WTF_MAKE_NONCOPYABLE(SyncGetRegistrationsCallbacks);
|
| - // FIXME(tasak): When making public/platform classes to use PartitionAlloc,
|
| - // the following macro should be moved to WebCallbacks defined in
|
| - // public/platform/WebCallbacks.h.
|
| - USING_FAST_MALLOC(SyncGetRegistrationsCallbacks);
|
| -
|
| - public:
|
| - SyncGetRegistrationsCallbacks(ScriptPromiseResolver*,
|
| - ServiceWorkerRegistration*);
|
| - ~SyncGetRegistrationsCallbacks() override;
|
| -
|
| - void onSuccess(
|
| - const WebVector<blink::mojom::blink::SyncRegistration*>&) override;
|
| - void onError(const WebSyncError&) override;
|
| -
|
| - private:
|
| - Persistent<ScriptPromiseResolver> m_resolver;
|
| - Persistent<ServiceWorkerRegistration> m_serviceWorkerRegistration;
|
| -};
|
| -
|
| -} // namespace blink
|
| -
|
| -#endif // SyncCallbacks_h
|
|
|