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

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

Issue 1800953003: ServiceWorker: Move ExtendableMessageEvent dispatching out of ServiceWorkerVersion (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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: content/browser/service_worker/service_worker_version.h
diff --git a/content/browser/service_worker/service_worker_version.h b/content/browser/service_worker/service_worker_version.h
index e9e3cc96057ebfb73f601784336ed64269d2a57a..9fcc5ff66bd98dfcdce80474bdd96cdc15090e87 100644
--- a/content/browser/service_worker/service_worker_version.h
+++ b/content/browser/service_worker/service_worker_version.h
@@ -250,17 +250,6 @@ class CONTENT_EXPORT ServiceWorkerVersion
const std::vector<TransferredMessagePort>& sent_message_ports,
const StatusCallback& callback);
- // Sends an extendable message event to the associated embedded worker.
- // TODO(nhiroki): This should be moved to ServiceWorkerDispatcherHost in favor
- // of crbug.com/570820 after ExtendableMessageEvent is implemented
- // (crbug.com/543198).
- void DispatchExtendableMessageEvent(
- ServiceWorkerProviderHost* sender_provider_host,
- const base::string16& message,
- const url::Origin& source_origin,
- const std::vector<TransferredMessagePort>& sent_message_ports,
- const StatusCallback& callback);
-
// Sends a cross origin message event to the associated embedded worker and
// asynchronously calls |callback| when the message was sent (or failed to
// sent).
@@ -518,20 +507,6 @@ class CONTENT_EXPORT ServiceWorkerVersion
void OnStartSentAndScriptEvaluated(ServiceWorkerStatusCode status);
- template <typename SourceInfo>
- void DispatchExtendableMessageEventInternal(
- const base::string16& message,
- const url::Origin& source_origin,
- const std::vector<TransferredMessagePort>& sent_message_ports,
- const StatusCallback& callback,
- const SourceInfo& source_info);
- void DispatchExtendableMessageEventAfterStartWorker(
- const base::string16& message,
- const url::Origin& source_origin,
- const std::vector<TransferredMessagePort>& sent_message_ports,
- const ExtendableMessageEventSource& source,
- const StatusCallback& callback);
-
void DispatchMessageEventInternal(
const base::string16& message,
const std::vector<TransferredMessagePort>& sent_message_ports,

Powered by Google App Engine
This is Rietveld 408576698