Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(908)

Unified Diff: Source/modules/background_sync/ServiceWorkerRegistrationSync.h

Issue 963683002: Add IDL and initial Blink API for Background Sync (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Add missing serviceWorkerRegistration.syncManager to interface tests Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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

Powered by Google App Engine
This is Rietveld 408576698