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

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

Issue 1974613002: Remove code that was only used by navigator.connect. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix comment Created 4 years, 7 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_dispatcher_host.h
diff --git a/content/browser/service_worker/service_worker_dispatcher_host.h b/content/browser/service_worker/service_worker_dispatcher_host.h
index 35604ba508d7e6af4fb4b426ac3bd85e532b5eec..0907ec941aca319b942f05831dd98e4f8ed0a99f 100644
--- a/content/browser/service_worker/service_worker_dispatcher_host.h
+++ b/content/browser/service_worker/service_worker_dispatcher_host.h
@@ -40,7 +40,6 @@ struct ServiceWorkerObjectInfo;
struct ServiceWorkerRegistrationInfo;
struct ServiceWorkerRegistrationObjectInfo;
struct ServiceWorkerVersionAttributes;
-struct TransferredMessagePort;
class CONTENT_EXPORT ServiceWorkerDispatcherHost : public BrowserMessageFilter {
public:
@@ -141,12 +140,11 @@ class CONTENT_EXPORT ServiceWorkerDispatcherHost : public BrowserMessageFilter {
void OnDecrementServiceWorkerRefCount(int handle_id);
void OnIncrementRegistrationRefCount(int registration_handle_id);
void OnDecrementRegistrationRefCount(int registration_handle_id);
- void OnPostMessageToWorker(
- int handle_id,
- int provider_id,
- const base::string16& message,
- const url::Origin& source_origin,
- const std::vector<TransferredMessagePort>& sent_message_ports);
+ void OnPostMessageToWorker(int handle_id,
+ int provider_id,
+ const base::string16& message,
+ const url::Origin& source_origin,
+ const std::vector<int>& sent_message_ports);
void OnTerminateWorker(int handle_id);
@@ -154,7 +152,7 @@ class CONTENT_EXPORT ServiceWorkerDispatcherHost : public BrowserMessageFilter {
scoped_refptr<ServiceWorkerVersion> worker,
const base::string16& message,
const url::Origin& source_origin,
- const std::vector<TransferredMessagePort>& sent_message_ports,
+ const std::vector<int>& sent_message_ports,
ServiceWorkerProviderHost* sender_provider_host,
const StatusCallback& callback);
template <typename SourceInfo>
@@ -162,19 +160,19 @@ class CONTENT_EXPORT ServiceWorkerDispatcherHost : public BrowserMessageFilter {
scoped_refptr<ServiceWorkerVersion> worker,
const base::string16& message,
const url::Origin& source_origin,
- const std::vector<TransferredMessagePort>& sent_message_ports,
+ const std::vector<int>& sent_message_ports,
const StatusCallback& callback,
const SourceInfo& source_info);
void DispatchExtendableMessageEventAfterStartWorker(
scoped_refptr<ServiceWorkerVersion> worker,
const base::string16& message,
const url::Origin& source_origin,
- const std::vector<TransferredMessagePort>& sent_message_ports,
+ const std::vector<int>& sent_message_ports,
const ExtendableMessageEventSource& source,
const StatusCallback& callback);
template <typename SourceInfo>
void DidFailToDispatchExtendableMessageEvent(
- const std::vector<TransferredMessagePort>& sent_message_ports,
+ const std::vector<int>& sent_message_ports,
const SourceInfo& source_info,
const StatusCallback& callback,
ServiceWorkerStatusCode status);
« no previous file with comments | « content/browser/message_port_service.cc ('k') | content/browser/service_worker/service_worker_dispatcher_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698