| Index: content/renderer/service_worker/service_worker_fetch_context_info_impl.h
|
| diff --git a/content/renderer/service_worker/service_worker_fetch_context_info_impl.h b/content/renderer/service_worker/service_worker_fetch_context_info_impl.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..7027da55886cd579199d3a84fd5a9e02ac48b2de
|
| --- /dev/null
|
| +++ b/content/renderer/service_worker/service_worker_fetch_context_info_impl.h
|
| @@ -0,0 +1,33 @@
|
| +// 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_RENDERER_SERVICE_WORKER_SERVICE_WORKER_FETCH_CONTEXT_INFO_IMPL_H_
|
| +#define CONTENT_RENDERER_SERVICE_WORKER_SERVICE_WORKER_FETCH_CONTEXT_INFO_IMPL_H_
|
| +
|
| +#include "content/common/worker_fetch_context_factory.mojom.h"
|
| +#include "third_party/WebKit/public/platform/WebWorkerFetchContext.h"
|
| +
|
| +namespace content {
|
| +
|
| +class ServiceWorkerFetchContextInfoImpl
|
| + : public blink::WebWorkerFetchContextInfo {
|
| + public:
|
| + ServiceWorkerFetchContextInfoImpl(
|
| + mojom::WorkerFetchContextFactoryPtrInfo factory_info,
|
| + int service_worker_provider_id);
|
| + ~ServiceWorkerFetchContextInfoImpl() override;
|
| +
|
| + std::unique_ptr<blink::WebWorkerFetchContext> CreateContext(
|
| + base::SingleThreadTaskRunner* loading_task_runner) override;
|
| + void setAppCacheHostID(int appcache_host_id) override;
|
| + void willSendRequest(blink::WebURLRequest& request) override;
|
| +
|
| + private:
|
| + mojom::WorkerFetchContextFactoryPtrInfo factory_info_;
|
| + const int service_worker_provider_id_;
|
| +};
|
| +
|
| +} // namespace content
|
| +
|
| +#endif // CONTENT_RENDERER_SERVICE_WORKER_SERVICE_WORKER_FETCH_CONTEXT_INFO_IMPL_H_
|
|
|