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

Side by Side Diff: third_party/WebKit/Source/modules/serviceworkers/ExtendableMessageEvent.cpp

Issue 1632113004: ServiceWorker: Add initial implementation of ExtendableMessageEvent behind a flag (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 10 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 2016 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 #include "modules/serviceworkers/ExtendableMessageEvent.h"
6
7 namespace blink {
8
9 PassRefPtrWillBeRawPtr<ExtendableMessageEvent> ExtendableMessageEvent::create()
10 {
11 return adoptRefWillBeNoop(new ExtendableMessageEvent);
12 }
13
14 PassRefPtrWillBeRawPtr<ExtendableMessageEvent> ExtendableMessageEvent::create(co nst AtomicString& type, const ExtendableMessageEventInit& initializer)
15 {
16 return adoptRefWillBeNoop(new ExtendableMessageEvent(type, initializer));
17 }
18
19 PassRefPtrWillBeRawPtr<ExtendableMessageEvent> ExtendableMessageEvent::create(co nst AtomicString& type, const ExtendableMessageEventInit& initializer, WaitUntil Observer* observer)
20 {
21 return adoptRefWillBeNoop(new ExtendableMessageEvent(type, initializer, obse rver));
22 }
23
24 const AtomicString& ExtendableMessageEvent::interfaceName() const
25 {
26 return EventNames::ExtendableMessageEvent;
27 }
28
29 DEFINE_TRACE(ExtendableMessageEvent)
30 {
31 ExtendableEvent::trace(visitor);
32 }
33
34 ExtendableMessageEvent::ExtendableMessageEvent()
35 {
36 }
37
38 ExtendableMessageEvent::ExtendableMessageEvent(const AtomicString& type, const E xtendableMessageEventInit& initializer)
39 : ExtendableMessageEvent(type, initializer, nullptr)
40 {
41 }
42
43 ExtendableMessageEvent::ExtendableMessageEvent(const AtomicString& type, const E xtendableMessageEventInit& initializer, WaitUntilObserver* observer)
44 : ExtendableEvent(type, initializer, observer)
45 {
46 // TODO(nhiroki): Set attributes (crbug.com/543198).
47 }
48
49 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698