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

Unified Diff: third_party/WebKit/Source/modules/background_fetch/BackgroundFetchEvent.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/BackgroundFetchEvent.h
diff --git a/third_party/WebKit/Source/modules/background_fetch/BackgroundFetchEvent.h b/third_party/WebKit/Source/modules/background_fetch/BackgroundFetchEvent.h
index d50fe4deec45853292ff9220dde5279f63efb4a3..bfc5c63a1ed1126d0a0492f4ee9899daf100222c 100644
--- a/third_party/WebKit/Source/modules/background_fetch/BackgroundFetchEvent.h
+++ b/third_party/WebKit/Source/modules/background_fetch/BackgroundFetchEvent.h
@@ -5,6 +5,7 @@
#ifndef BackgroundFetchEvent_h
#define BackgroundFetchEvent_h
+#include "modules/ModulesExport.h"
#include "modules/serviceworkers/ExtendableEvent.h"
#include "platform/heap/Handle.h"
#include "wtf/text/AtomicString.h"
@@ -12,15 +13,23 @@
namespace blink {
class BackgroundFetchEventInit;
+class WaitUntilObserver;
-class BackgroundFetchEvent : public ExtendableEvent {
+class MODULES_EXPORT BackgroundFetchEvent : public ExtendableEvent {
DEFINE_WRAPPERTYPEINFO();
public:
static BackgroundFetchEvent* create(
const AtomicString& type,
const BackgroundFetchEventInit& initializer) {
- return new BackgroundFetchEvent(type, initializer);
+ return new BackgroundFetchEvent(type, initializer, nullptr /* observer */);
+ }
+
+ static BackgroundFetchEvent* create(
+ const AtomicString& type,
+ const BackgroundFetchEventInit& initializer,
+ WaitUntilObserver* observer) {
+ return new BackgroundFetchEvent(type, initializer, observer);
}
~BackgroundFetchEvent() override;
@@ -33,7 +42,8 @@ class BackgroundFetchEvent : public ExtendableEvent {
protected:
BackgroundFetchEvent(const AtomicString& type,
- const BackgroundFetchEventInit&);
+ const BackgroundFetchEventInit&,
+ WaitUntilObserver*);
String m_tag;
};

Powered by Google App Engine
This is Rietveld 408576698