| Index: Source/modules/background_sync/ServiceWorkerRegistrationSync.h
|
| diff --git a/Source/modules/push_messaging/ServiceWorkerRegistrationPush.h b/Source/modules/background_sync/ServiceWorkerRegistrationSync.h
|
| similarity index 37%
|
| copy from Source/modules/push_messaging/ServiceWorkerRegistrationPush.h
|
| copy to Source/modules/background_sync/ServiceWorkerRegistrationSync.h
|
| index ba8a4f0d9b01cf53ed4d4aed198bfafa5d55319b..9ddc5043acdce82501c3cc7bb32a833b2452480e 100644
|
| --- a/Source/modules/push_messaging/ServiceWorkerRegistrationPush.h
|
| +++ b/Source/modules/background_sync/ServiceWorkerRegistrationSync.h
|
| @@ -1,38 +1,38 @@
|
| -// Copyright 2014 The Chromium Authors. All rights reserved.
|
| +// 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 ServiceWorkerRegistrationPush_h
|
| -#define ServiceWorkerRegistrationPush_h
|
| +#ifndef ServiceWorkerRegistrationSync_h
|
| +#define ServiceWorkerRegistrationSync_h
|
|
|
| #include "platform/Supplementable.h"
|
| #include "platform/heap/Handle.h"
|
|
|
| namespace blink {
|
|
|
| -class PushManager;
|
| +class SyncManager;
|
| class ServiceWorkerRegistration;
|
|
|
| -class ServiceWorkerRegistrationPush final : public GarbageCollectedFinalized<ServiceWorkerRegistrationPush>, public HeapSupplement<ServiceWorkerRegistration> {
|
| - USING_GARBAGE_COLLECTED_MIXIN(ServiceWorkerRegistrationPush);
|
| - WTF_MAKE_NONCOPYABLE(ServiceWorkerRegistrationPush);
|
| +class ServiceWorkerRegistrationSync final : public GarbageCollectedFinalized<ServiceWorkerRegistrationSync>, public HeapSupplement<ServiceWorkerRegistration> {
|
| + USING_GARBAGE_COLLECTED_MIXIN(ServiceWorkerRegistrationSync);
|
| + WTF_MAKE_NONCOPYABLE(ServiceWorkerRegistrationSync);
|
| public:
|
| - virtual ~ServiceWorkerRegistrationPush();
|
| - static ServiceWorkerRegistrationPush& from(ServiceWorkerRegistration&);
|
| + virtual ~ServiceWorkerRegistrationSync();
|
| + static ServiceWorkerRegistrationSync& from(ServiceWorkerRegistration&);
|
|
|
| - static PushManager* pushManager(ServiceWorkerRegistration&);
|
| - PushManager* pushManager();
|
| + static SyncManager* syncManager(ServiceWorkerRegistration&);
|
| + SyncManager* syncManager();
|
|
|
| DECLARE_VIRTUAL_TRACE();
|
|
|
| private:
|
| - explicit ServiceWorkerRegistrationPush(ServiceWorkerRegistration*);
|
| + explicit ServiceWorkerRegistrationSync(ServiceWorkerRegistration*);
|
| static const char* supplementName();
|
|
|
| Member<ServiceWorkerRegistration> m_registration;
|
| - Member<PushManager> m_pushManager;
|
| + Member<SyncManager> m_syncManager;
|
| };
|
|
|
| } // namespace blink
|
|
|
| -#endif // ServiceWorkerRegistrationPush_h
|
| +#endif // ServiceWorkerRegistrationSync_h
|
|
|