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

Unified Diff: third_party/WebKit/Source/modules/serviceworkers/ExtendableMessageEvent.h

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, 11 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: third_party/WebKit/Source/modules/serviceworkers/ExtendableMessageEvent.h
diff --git a/third_party/WebKit/Source/modules/serviceworkers/ExtendableMessageEvent.h b/third_party/WebKit/Source/modules/serviceworkers/ExtendableMessageEvent.h
new file mode 100644
index 0000000000000000000000000000000000000000..37bea5b6db2d5f6991f1fd135a19087b948a32ab
--- /dev/null
+++ b/third_party/WebKit/Source/modules/serviceworkers/ExtendableMessageEvent.h
@@ -0,0 +1,35 @@
+// Copyright 2016 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 ExtendableMessageEvent_h
+#define ExtendableMessageEvent_h
+
+#include "modules/EventModules.h"
+#include "modules/ModulesExport.h"
+#include "modules/serviceworkers/ExtendableEvent.h"
+#include "modules/serviceworkers/ExtendableMessageEventInit.h"
+
+namespace blink {
+
+class MODULES_EXPORT ExtendableMessageEvent final : public ExtendableEvent {
+ DEFINE_WRAPPERTYPEINFO();
+
+public:
+ static PassRefPtrWillBeRawPtr<ExtendableMessageEvent> create();
+ static PassRefPtrWillBeRawPtr<ExtendableMessageEvent> create(const AtomicString& type, const ExtendableMessageEventInit& initializer);
+ static PassRefPtrWillBeRawPtr<ExtendableMessageEvent> create(const AtomicString& type, const ExtendableMessageEventInit& initializer, WaitUntilObserver*);
+
+ const AtomicString& interfaceName() const override;
+
+ DECLARE_VIRTUAL_TRACE();
+
+private:
+ ExtendableMessageEvent();
+ ExtendableMessageEvent(const AtomicString& type, const ExtendableMessageEventInit& initializer);
+ ExtendableMessageEvent(const AtomicString& type, const ExtendableMessageEventInit& initializer, WaitUntilObserver*);
+};
+
+} // namespace blink
+
+#endif // ExtendableMessageEvent_h

Powered by Google App Engine
This is Rietveld 408576698