| Index: content/renderer/service_worker/worker_fetch_context_info_impl.h
|
| diff --git a/content/renderer/service_worker/worker_fetch_context_info_impl.h b/content/renderer/service_worker/worker_fetch_context_info_impl.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..fd224c792901815839e169268508b15862794e47
|
| --- /dev/null
|
| +++ b/content/renderer/service_worker/worker_fetch_context_info_impl.h
|
| @@ -0,0 +1,43 @@
|
| +// 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_WORKER_FETCH_CONTEXT_INFO_IMPL_H_
|
| +#define CONTENT_RENDERER_SERVICE_WORKER_WORKER_FETCH_CONTEXT_INFO_IMPL_H_
|
| +
|
| +#include "content/child/thread_safe_sender.h"
|
| +#include "content/common/service_worker/service_worker_types.h"
|
| +#include "content/common/worker_fetch_context_factory.mojom.h"
|
| +#include "ipc/ipc_message.h"
|
| +#include "third_party/WebKit/public/platform/WebWorkerFetchContext.h"
|
| +
|
| +namespace content {
|
| +
|
| +class WorkerFetchContextInfoImpl : public blink::WebWorkerFetchContextInfo {
|
| + public:
|
| + WorkerFetchContextInfoImpl(
|
| + mojom::WorkerFetchContextFactoryPtrInfo factory_info);
|
| + ~WorkerFetchContextInfoImpl() override;
|
| +
|
| + std::unique_ptr<blink::WebWorkerFetchContext> CreateContext(
|
| + base::SingleThreadTaskRunner* loading_task_runner) override;
|
| + void setAppCacheHostID(int appcache_host_id) override;
|
| + void setParentFrameID(int parent_frame_id) override;
|
| + void setServiceWorkerProviderID(int service_worker_provider_id) override;
|
| + void setIsSecureContext(bool is_secure_context) override;
|
| + void setIsControlledByServiceWorker(bool contolled) override;
|
| + void willSendRequest(blink::WebURLRequest&) override;
|
| +
|
| + private:
|
| + mojom::WorkerFetchContextFactoryPtrInfo factory_info_;
|
| + int service_worker_provider_id_ = kInvalidServiceWorkerProviderId;
|
| + int appcache_host_id_ = 0;
|
| + int parent_frame_id_ = MSG_ROUTING_NONE;
|
| + bool is_secure_context_ = false;
|
| + bool is_controlled_by_service_worker_ = false;
|
| + scoped_refptr<ThreadSafeSender> thread_safe_sender_;
|
| +};
|
| +
|
| +} // namespace content
|
| +
|
| +#endif // CONTENT_RENDERER_SERVICE_WORKER_WORKER_FETCH_CONTEXT_INFO_IMPL_H_
|
|
|