Chromium Code Reviews| 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 34% |
| copy from Source/modules/push_messaging/ServiceWorkerRegistrationPush.h |
| copy to Source/modules/background_sync/ServiceWorkerRegistrationSync.h |
| index ba8a4f0d9b01cf53ed4d4aed198bfafa5d55319b..9b50fcd1ab4e9553ab97071f330fc15077e7a5a7 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(); |
| + virtual void trace(Visitor*) override; |
|
jkarlin
2015/02/27 20:08:12
DECLARE_VIRTUAL_TRACE(); instead
iclelland
2015/03/02 03:51:10
Done.
|
| 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 |