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

Unified Diff: content/browser/service_worker/service_worker_provider_host.h

Issue 325173002: ServiceWorker: Confirm the liveness of the associated context before handling message (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 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: content/browser/service_worker/service_worker_provider_host.h
diff --git a/content/browser/service_worker/service_worker_provider_host.h b/content/browser/service_worker/service_worker_provider_host.h
index d8481e133609e4b4f032970798635da71bbec293..0f8d10cf5fcdb8980840d535c7a2505ee19c16e0 100644
--- a/content/browser/service_worker/service_worker_provider_host.h
+++ b/content/browser/service_worker/service_worker_provider_host.h
@@ -93,6 +93,10 @@ class CONTENT_EXPORT ServiceWorkerProviderHost
void PostMessage(const base::string16& message,
const std::vector<int>& sent_message_port_ids);
+ // Returns true if the context referred to by this host (i.e. |context_|) is
+ // still alive.
+ bool IsAlive();
+
private:
const int process_id_;
const int provider_id_;

Powered by Google App Engine
This is Rietveld 408576698