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

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: Make sure ids are 64 bit; fix formatting anomaly 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/background_sync/PeriodicSyncEventInit.h"
jkarlin 2015/04/17 19:04:49 forward declare instead?
iclelland 2015/04/22 14:05:10 Done.
10 #include "modules/background_sync/PeriodicSyncRegistration.h"
jkarlin 2015/04/17 19:04:49 ditto
iclelland 2015/04/22 14:05:10 Done.
11 #include "modules/serviceworkers/ExtendableEvent.h"
12 #include "platform/heap/Handle.h"
jkarlin 2015/04/17 19:04:49 unused?
iclelland 2015/04/22 14:05:10 Done.
13 #include "wtf/text/AtomicString.h"
14 #include "wtf/text/WTFString.h"
jkarlin 2015/04/17 19:04:49 unused?
iclelland 2015/04/22 14:05:10 Done.
15
16 namespace blink {
17
18 class PeriodicSyncEvent final : public ExtendableEvent {
19 DEFINE_WRAPPERTYPEINFO();
20 public:
21 static PassRefPtrWillBeRawPtr<PeriodicSyncEvent> create()
22 {
23 return adoptRefWillBeNoop(new PeriodicSyncEvent);
24 }
25 static PassRefPtrWillBeRawPtr<PeriodicSyncEvent> create(const AtomicString& type, PeriodicSyncRegistration* syncRegistration, WaitUntilObserver* observer)
26 {
27 return adoptRefWillBeNoop(new PeriodicSyncEvent(type, syncRegistration, observer));
28 }
29 static PassRefPtrWillBeRawPtr<PeriodicSyncEvent> create(const AtomicString& type, const PeriodicSyncEventInit& init)
30 {
31 return adoptRefWillBeNoop(new PeriodicSyncEvent(type, init));
32 }
33
34 virtual ~PeriodicSyncEvent();
35
36 virtual const AtomicString& interfaceName() const override;
37
38 PeriodicSyncRegistration* registration();
39
40 DECLARE_VIRTUAL_TRACE();
41
42 private:
43 PeriodicSyncEvent();
44 PeriodicSyncEvent(const AtomicString& type, PeriodicSyncRegistration*, WaitU ntilObserver*);
45 PeriodicSyncEvent(const AtomicString& type, const PeriodicSyncEventInit&);
46
47 PersistentWillBeMember<PeriodicSyncRegistration> m_syncRegistration;
jkarlin 2015/04/17 19:04:49 perhaps m_periodicRegistration?
iclelland 2015/04/22 14:05:10 Sure. Done.
48 };
49
50 } // namespace blink
51
52 #endif // PeriodicSyncEvent_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698