| Index: content/browser/service_worker/service_worker_controllee_url_loader_factory.h
|
| diff --git a/content/browser/service_worker/service_worker_controllee_url_loader_factory.h b/content/browser/service_worker/service_worker_controllee_url_loader_factory.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..892b327c77f64a22bb491969fc9e210be3295501
|
| --- /dev/null
|
| +++ b/content/browser/service_worker/service_worker_controllee_url_loader_factory.h
|
| @@ -0,0 +1,32 @@
|
| +// Copyright 2017 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#ifndef CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CONTROLLEE_URL_LOADER_FACTORY_H_
|
| +#define CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CONTROLLEE_URL_LOADER_FACTORY_H_
|
| +
|
| +#include "content/browser/service_worker/service_worker_url_loader_factory.h"
|
| +
|
| +namespace content {
|
| +
|
| +// TODO(scottmg): Bind the other end of this to the acive SWVersion when it's
|
| +// created in ServiceWorkerControlleeRequestHandler. Currently, this is a simple
|
| +// passthrough to the network service.
|
| +class ServiceWorkerControlleeURLLoaderFactory
|
| + : public ServiceWorkerURLLoaderFactory {
|
| + public:
|
| + void CreateLoaderAndStart(mojom::URLLoaderAssociatedRequest request,
|
| + int32_t routing_id,
|
| + int32_t request_id,
|
| + uint32_t options,
|
| + const ResourceRequest& url_request,
|
| + mojom::URLLoaderClientPtr client) override;
|
| + void SyncLoad(int32_t routing_id,
|
| + int32_t request_id,
|
| + const ResourceRequest& request,
|
| + SyncLoadCallback callback) override;
|
| +};
|
| +
|
| +} // namespace content
|
| +
|
| +#endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CONTROLLEE_URL_LOADER_FACTORY_H_
|
|
|