| 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 9aa1f97a5aae2845fadd3e3c679b7f507aaf053b..454a0addf18fac7cdad41b4f28c81dcdc6d28ae8 100644
|
| --- a/content/browser/service_worker/service_worker_dispatcher_host.h
|
| +++ b/content/browser/service_worker/service_worker_dispatcher_host.h
|
| @@ -10,6 +10,7 @@
|
| #include <memory>
|
| #include <vector>
|
|
|
| +#include "base/callback.h"
|
| #include "base/id_map.h"
|
| #include "base/macros.h"
|
| #include "base/memory/weak_ptr.h"
|
| @@ -19,16 +20,21 @@
|
| #include "content/common/service_worker/service_worker_types.h"
|
| #include "content/public/browser/browser_message_filter.h"
|
| #include "mojo/public/cpp/bindings/associated_binding_set.h"
|
| +#include "mojo/public/cpp/bindings/interface_request.h"
|
|
|
| class GURL;
|
| struct EmbeddedWorkerHostMsg_ReportConsoleMessage_Params;
|
|
|
| namespace url {
|
| class Origin;
|
| -}
|
| +} // namespace url
|
|
|
| namespace content {
|
|
|
| +namespace mojom {
|
| +class URLLoaderFactory;
|
| +} // namespace mojom
|
| +
|
| class MessagePortMessageFilter;
|
| class ResourceContext;
|
| class ServiceWorkerContextCore;
|
| @@ -47,10 +53,14 @@ class CONTENT_EXPORT ServiceWorkerDispatcherHost
|
| : public mojom::ServiceWorkerDispatcherHost,
|
| public BrowserMessageFilter {
|
| public:
|
| + using URLLoaderFactoryCallback =
|
| + base::Callback<bool(mojo::InterfaceRequest<mojom::URLLoaderFactory>)>;
|
| +
|
| ServiceWorkerDispatcherHost(
|
| int render_process_id,
|
| MessagePortMessageFilter* message_port_message_filter,
|
| - ResourceContext* resource_context);
|
| + ResourceContext* resource_context,
|
| + const URLLoaderFactoryCallback& url_loader_factory_callback);
|
|
|
| void Init(ServiceWorkerContextWrapper* context_wrapper);
|
|
|
| @@ -85,6 +95,10 @@ class CONTENT_EXPORT ServiceWorkerDispatcherHost
|
| return message_port_message_filter_;
|
| }
|
|
|
| + URLLoaderFactoryCallback url_loader_factory_callback() const {
|
| + return url_loader_factory_callback_;
|
| + }
|
| +
|
| protected:
|
| ~ServiceWorkerDispatcherHost() override;
|
|
|
| @@ -242,6 +256,7 @@ class CONTENT_EXPORT ServiceWorkerDispatcherHost
|
| const int render_process_id_;
|
| MessagePortMessageFilter* const message_port_message_filter_;
|
| ResourceContext* resource_context_;
|
| + const URLLoaderFactoryCallback url_loader_factory_callback_;
|
| scoped_refptr<ServiceWorkerContextWrapper> context_wrapper_;
|
|
|
| IDMap<ServiceWorkerHandle, IDMapOwnPointer> handles_;
|
|
|