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

Unified Diff: third_party/WebKit/Source/modules/background_fetch/BackgroundFetchClickEvent.h

Issue 2748213003: Service Worker event dispatcher for Background Fetch (Closed)
Patch Set: uma fix Created 3 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: third_party/WebKit/Source/modules/background_fetch/BackgroundFetchClickEvent.h
diff --git a/third_party/WebKit/Source/modules/background_fetch/BackgroundFetchClickEvent.h b/third_party/WebKit/Source/modules/background_fetch/BackgroundFetchClickEvent.h
index a9b9184ddc530d027168011bdc1301c3cb057049..f6f697b9bab10ba172056d8c7671c36890ad3bc8 100644
--- a/third_party/WebKit/Source/modules/background_fetch/BackgroundFetchClickEvent.h
+++ b/third_party/WebKit/Source/modules/background_fetch/BackgroundFetchClickEvent.h
@@ -5,6 +5,7 @@
#ifndef BackgroundFetchClickEvent_h
#define BackgroundFetchClickEvent_h
+#include "modules/ModulesExport.h"
#include "modules/background_fetch/BackgroundFetchEvent.h"
#include "platform/heap/Handle.h"
#include "wtf/text/AtomicString.h"
@@ -12,15 +13,25 @@
namespace blink {
class BackgroundFetchClickEventInit;
+class WaitUntilObserver;
-class BackgroundFetchClickEvent final : public BackgroundFetchEvent {
+class MODULES_EXPORT BackgroundFetchClickEvent final
+ : public BackgroundFetchEvent {
DEFINE_WRAPPERTYPEINFO();
public:
static BackgroundFetchClickEvent* create(
const AtomicString& type,
const BackgroundFetchClickEventInit& initializer) {
- return new BackgroundFetchClickEvent(type, initializer);
+ return new BackgroundFetchClickEvent(type, initializer,
+ nullptr /* observer */);
+ }
+
+ static BackgroundFetchClickEvent* create(
+ const AtomicString& type,
+ const BackgroundFetchClickEventInit& initializer,
+ WaitUntilObserver* observer) {
+ return new BackgroundFetchClickEvent(type, initializer, observer);
}
~BackgroundFetchClickEvent() override;
@@ -33,7 +44,8 @@ class BackgroundFetchClickEvent final : public BackgroundFetchEvent {
private:
BackgroundFetchClickEvent(const AtomicString& type,
- const BackgroundFetchClickEventInit&);
+ const BackgroundFetchClickEventInit&,
+ WaitUntilObserver*);
AtomicString m_state;
};

Powered by Google App Engine
This is Rietveld 408576698