Chromium Code Reviews| Index: content/browser/service_worker/service_worker_url_loader_factory.h |
| diff --git a/content/browser/service_worker/service_worker_url_loader_factory.h b/content/browser/service_worker/service_worker_url_loader_factory.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..bb365615ac4c44eca4801a79d948b41d7474a236 |
| --- /dev/null |
| +++ b/content/browser/service_worker/service_worker_url_loader_factory.h |
| @@ -0,0 +1,27 @@ |
| +// 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_URL_LOADER_FACTORY_H_ |
| +#define CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_URL_LOADER_FACTORY_H_ |
| + |
| +#include "content/browser/service_worker/service_worker_request_handler.h" |
| +#include "content/common/url_loader_factory.mojom.h" |
| + |
| +namespace content { |
| + |
| +// Abstract base class for URLLoaderFactorys created for different types of |
| +// ServiceWorker requests. |
| +class ServiceWorkerURLLoaderFactory : public mojom::URLLoaderFactory { |
|
kinuko
2017/05/08 14:55:48
Will we need this base class?
scottmg
2017/05/08 20:12:31
Removed. (Not needed now, I was thinking about som
|
| + public: |
| + explicit ServiceWorkerURLLoaderFactory( |
| + std::unique_ptr<ServiceWorkerRequestHandler> handler); |
| + ~ServiceWorkerURLLoaderFactory() override; |
| + |
| + private: |
| + std::unique_ptr<ServiceWorkerRequestHandler> handler_; |
| +}; |
| + |
| +} // namespace |
| + |
| +#endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_URL_LOADER_FACTORY_H_ |