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

Unified Diff: third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerContainer.h

Issue 2144213002: ServiceWorkerContainer should override contextDestroyed and clear m_provider (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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/ServiceWorkerContainer.h
diff --git a/third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerContainer.h b/third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerContainer.h
index b912d7cb6aea7f743bc4cf934d6f9665e75c3cc2..b1a3853d08e4dedb988c4533302869df92acf477 100644
--- a/third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerContainer.h
+++ b/third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerContainer.h
@@ -65,8 +65,6 @@ public:
static ServiceWorkerContainer* create(ExecutionContext*);
~ServiceWorkerContainer();
- void willBeDetachedFromFrame();
-
DECLARE_VIRTUAL_TRACE();
ServiceWorker* controller() { return m_controller; }
@@ -79,6 +77,8 @@ public:
ScriptPromise getRegistration(ScriptState*, const String& documentURL);
ScriptPromise getRegistrations(ScriptState*);
+ void contextDestroyed() override;
+
// WebServiceWorkerProviderClient overrides.
void setController(std::unique_ptr<WebServiceWorker::Handle>, bool shouldNotifyControllerChange) override;
void dispatchMessageEvent(std::unique_ptr<WebServiceWorker::Handle>, const WebString& message, const WebMessagePortChannelArray&) override;

Powered by Google App Engine
This is Rietveld 408576698