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

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

Issue 2744873002: Implement the Request/Response bits of Background Fetch (Closed)
Patch Set: comments 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/BackgroundFetchedEvent.h
diff --git a/third_party/WebKit/Source/modules/background_fetch/BackgroundFetchedEvent.h b/third_party/WebKit/Source/modules/background_fetch/BackgroundFetchedEvent.h
index b06be3f75ea5dfe1b58cb6690b4b57c467bb04db..aaee6f61e9be01c065e1e04aef395195df48a002 100644
--- a/third_party/WebKit/Source/modules/background_fetch/BackgroundFetchedEvent.h
+++ b/third_party/WebKit/Source/modules/background_fetch/BackgroundFetchedEvent.h
@@ -12,6 +12,7 @@
namespace blink {
+class BackgroundFetchSettledRequest;
class BackgroundFetchedEventInit;
class BackgroundFetchedEvent final : public BackgroundFetchEvent {
@@ -26,15 +27,22 @@ class BackgroundFetchedEvent final : public BackgroundFetchEvent {
~BackgroundFetchedEvent() override;
+ // Web Exposed attribute defined in the IDL file.
+ HeapVector<Member<BackgroundFetchSettledRequest>> completedFetches() const;
+
// Web Exposed method defined in the IDL file.
ScriptPromise updateUI(ScriptState*, String title);
// ExtendableEvent interface.
const AtomicString& interfaceName() const override;
+ DECLARE_VIRTUAL_TRACE();
+
private:
BackgroundFetchedEvent(const AtomicString& type,
const BackgroundFetchedEventInit&);
+
+ HeapVector<Member<BackgroundFetchSettledRequest>> m_completedFetches;
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698