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

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

Issue 2767093004: Implement the BackgroundFetch{Fail,ed} Service Worker events (Closed)
Patch Set: forward declare the data view 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/BackgroundFetchFailEvent.h
diff --git a/third_party/WebKit/Source/modules/background_fetch/BackgroundFetchFailEvent.h b/third_party/WebKit/Source/modules/background_fetch/BackgroundFetchFailEvent.h
index f90fbc0e0a441a59c2a42a060ca634b6ad7172cd..381bf6220502065f603dc660d6a253298c9197db 100644
--- a/third_party/WebKit/Source/modules/background_fetch/BackgroundFetchFailEvent.h
+++ b/third_party/WebKit/Source/modules/background_fetch/BackgroundFetchFailEvent.h
@@ -5,16 +5,21 @@
#ifndef BackgroundFetchFailEvent_h
#define BackgroundFetchFailEvent_h
+#include "modules/ModulesExport.h"
#include "modules/background_fetch/BackgroundFetchEvent.h"
#include "platform/heap/Handle.h"
+#include "public/platform/WebVector.h"
#include "wtf/text/AtomicString.h"
namespace blink {
class BackgroundFetchFailEventInit;
class BackgroundFetchSettledFetch;
+class ScriptState;
+struct WebBackgroundFetchSettledFetch;
-class BackgroundFetchFailEvent final : public BackgroundFetchEvent {
+class MODULES_EXPORT BackgroundFetchFailEvent final
+ : public BackgroundFetchEvent {
DEFINE_WRAPPERTYPEINFO();
public:
@@ -24,6 +29,16 @@ class BackgroundFetchFailEvent final : public BackgroundFetchEvent {
return new BackgroundFetchFailEvent(type, initializer);
}
+ static BackgroundFetchFailEvent* create(
+ const AtomicString& type,
+ const BackgroundFetchFailEventInit& initializer,
+ const WebVector<WebBackgroundFetchSettledFetch>& fetches,
+ ScriptState* scriptState,
+ WaitUntilObserver* observer) {
+ return new BackgroundFetchFailEvent(type, initializer, fetches, scriptState,
+ observer);
+ }
+
~BackgroundFetchFailEvent() override;
// Web Exposed attribute defined in the IDL file.
@@ -37,6 +52,12 @@ class BackgroundFetchFailEvent final : public BackgroundFetchEvent {
private:
BackgroundFetchFailEvent(const AtomicString& type,
const BackgroundFetchFailEventInit&);
+ BackgroundFetchFailEvent(
+ const AtomicString& type,
+ const BackgroundFetchFailEventInit&,
+ const WebVector<WebBackgroundFetchSettledFetch>& fetches,
+ ScriptState*,
+ WaitUntilObserver*);
HeapVector<Member<BackgroundFetchSettledFetch>> m_fetches;
};

Powered by Google App Engine
This is Rietveld 408576698