OLD | NEW |
(Empty) | |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CONTENT_RENDERER_SERVICE_WORKER_SERVICE_WORKER_FETCH_CONTEXT_INFO_IMPL_H
_ |
| 6 #define CONTENT_RENDERER_SERVICE_WORKER_SERVICE_WORKER_FETCH_CONTEXT_INFO_IMPL_H
_ |
| 7 |
| 8 #include "content/common/worker_fetch_context_factory.mojom.h" |
| 9 #include "third_party/WebKit/public/platform/WebWorkerFetchContext.h" |
| 10 |
| 11 namespace content { |
| 12 |
| 13 class ServiceWorkerFetchContextInfoImpl |
| 14 : public blink::WebWorkerFetchContextInfo { |
| 15 public: |
| 16 ServiceWorkerFetchContextInfoImpl( |
| 17 mojom::WorkerFetchContextFactoryPtrInfo factory_info, |
| 18 int service_worker_provider_id); |
| 19 ~ServiceWorkerFetchContextInfoImpl() override; |
| 20 |
| 21 std::unique_ptr<blink::WebWorkerFetchContext> CreateContext( |
| 22 base::SingleThreadTaskRunner* loading_task_runner) override; |
| 23 void setAppCacheHostID(int appcache_host_id) override; |
| 24 void willSendRequest(blink::WebURLRequest& request) override; |
| 25 |
| 26 private: |
| 27 mojom::WorkerFetchContextFactoryPtrInfo factory_info_; |
| 28 const int service_worker_provider_id_; |
| 29 }; |
| 30 |
| 31 } // namespace content |
| 32 |
| 33 #endif // CONTENT_RENDERER_SERVICE_WORKER_SERVICE_WORKER_FETCH_CONTEXT_INFO_IMP
L_H_ |
OLD | NEW |