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

Unified Diff: third_party/WebKit/Source/modules/serviceworkers/InstallEvent.cpp

Issue 2746783002: [ServiceWorker] Mojofy InstallEvent of Service Worker (Closed)
Patch Set: Just delete a useless line Created 3 years, 8 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/InstallEvent.cpp
diff --git a/third_party/WebKit/Source/modules/serviceworkers/InstallEvent.cpp b/third_party/WebKit/Source/modules/serviceworkers/InstallEvent.cpp
index 5e0964930071610a429d596c841a56c454cafadd..878c232db2af2baace9831f3f42e17405633e341 100644
--- a/third_party/WebKit/Source/modules/serviceworkers/InstallEvent.cpp
+++ b/third_party/WebKit/Source/modules/serviceworkers/InstallEvent.cpp
@@ -19,8 +19,9 @@ InstallEvent* InstallEvent::Create(const AtomicString& type,
InstallEvent* InstallEvent::Create(const AtomicString& type,
const ExtendableEventInit& event_init,
+ int event_id,
WaitUntilObserver* observer) {
- return new InstallEvent(type, event_init, observer);
+ return new InstallEvent(type, event_init, event_id, observer);
}
InstallEvent::~InstallEvent() {}
@@ -89,7 +90,7 @@ void InstallEvent::registerForeignFetch(ScriptState* script_state,
return;
}
}
- client->RegisterForeignFetchScopes(sub_scope_urls, parsed_origins);
+ client->RegisterForeignFetchScopes(event_id_, sub_scope_urls, parsed_origins);
}
const AtomicString& InstallEvent::InterfaceName() const {
@@ -98,11 +99,12 @@ const AtomicString& InstallEvent::InterfaceName() const {
InstallEvent::InstallEvent(const AtomicString& type,
const ExtendableEventInit& initializer)
- : ExtendableEvent(type, initializer) {}
+ : ExtendableEvent(type, initializer), event_id_(0) {}
InstallEvent::InstallEvent(const AtomicString& type,
const ExtendableEventInit& initializer,
+ int event_id,
WaitUntilObserver* observer)
- : ExtendableEvent(type, initializer, observer) {}
+ : ExtendableEvent(type, initializer, observer), event_id_(event_id) {}
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698