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

Side by Side Diff: Source/modules/background_sync/PeriodicSyncEvent.h

Issue 1096503002: [Background Sync] Converting Blink code to the MVP API (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Unregister method requires the sync registration tag Created 5 years, 8 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef PeriodicSyncEvent_h
6 #define PeriodicSyncEvent_h
7
8 #include "modules/EventModules.h"
9 #include "modules/serviceworkers/ExtendableEvent.h"
10 #include "wtf/text/AtomicString.h"
11
12 namespace blink {
13
14 class PeriodicSyncEventInit;
15 class PeriodicSyncRegistration;
16
17 class PeriodicSyncEvent final : public ExtendableEvent {
18 DEFINE_WRAPPERTYPEINFO();
19 public:
20 static PassRefPtrWillBeRawPtr<PeriodicSyncEvent> create()
21 {
22 return adoptRefWillBeNoop(new PeriodicSyncEvent);
23 }
24 static PassRefPtrWillBeRawPtr<PeriodicSyncEvent> create(const AtomicString& type, PeriodicSyncRegistration* syncRegistration, WaitUntilObserver* observer)
25 {
26 return adoptRefWillBeNoop(new PeriodicSyncEvent(type, syncRegistration, observer));
27 }
28 static PassRefPtrWillBeRawPtr<PeriodicSyncEvent> create(const AtomicString& type, const PeriodicSyncEventInit& init)
29 {
30 return adoptRefWillBeNoop(new PeriodicSyncEvent(type, init));
31 }
32
33 virtual ~PeriodicSyncEvent();
34
35 virtual const AtomicString& interfaceName() const override;
36
37 PeriodicSyncRegistration* registration();
38
39 DECLARE_VIRTUAL_TRACE();
40
41 private:
42 PeriodicSyncEvent();
43 PeriodicSyncEvent(const AtomicString& type, PeriodicSyncRegistration*, WaitU ntilObserver*);
44 PeriodicSyncEvent(const AtomicString& type, const PeriodicSyncEventInit&);
45
46 PersistentWillBeMember<PeriodicSyncRegistration> m_periodicRegistration;
47 };
48
49 } // namespace blink
50
51 #endif // PeriodicSyncEvent_h
OLDNEW
« no previous file with comments | « Source/core/events/EventTypeNames.in ('k') | Source/modules/background_sync/PeriodicSyncEvent.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698