| 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 7419d1174e8343a3d5db22c7a801518a379d1f78..638036745098cbe952f30ef217bfbb7a05331a36 100644
|
| --- a/content/browser/service_worker/service_worker_version.h
|
| +++ b/content/browser/service_worker/service_worker_version.h
|
| @@ -264,6 +264,9 @@ class CONTENT_EXPORT ServiceWorkerVersion
|
| bool was_handled,
|
| base::Time dispatch_event_time);
|
|
|
| + void RegisterForeignFetchScopes(const std::vector<GURL>& sub_scopes,
|
| + const std::vector<url::Origin>& origins);
|
| +
|
| // Finishes an external request that was started by StartExternalRequest().
|
| // Returns false if there was an error finishing the request: e.g. the request
|
| // was not found or the worker already terminated.
|
| @@ -281,15 +284,6 @@ class CONTENT_EXPORT ServiceWorkerVersion
|
| return event_dispatcher_.get();
|
| }
|
|
|
| - // Dispatches an event. If dispatching the event fails, all of the error
|
| - // callbacks that were associated with |request_ids| via StartRequest are
|
| - // called.
|
| - // Use RegisterRequestCallback to register a callback to receive messages sent
|
| - // back in response to this event before calling this method. This must be
|
| - // called when the worker is running.
|
| - void DispatchEvent(const std::vector<int>& request_ids,
|
| - const IPC::Message& message);
|
| -
|
| // This method registers a callback to receive messages sent back from the
|
| // service worker in response to |request_id|.
|
| // ResponseMessage is the type of the IPC message that is used for the
|
| @@ -616,9 +610,6 @@ class CONTENT_EXPORT ServiceWorkerVersion
|
| void OnFocusClientFinished(int request_id,
|
| const ServiceWorkerClientInfo& client_info);
|
|
|
| - void OnRegisterForeignFetchScopes(const std::vector<GURL>& sub_scopes,
|
| - const std::vector<url::Origin>& origins);
|
| -
|
| void DidEnsureLiveRegistrationForStartWorker(
|
| ServiceWorkerMetrics::EventType purpose,
|
| Status prestart_status,
|
|
|