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/WebWorkerFetchContextInfo.h" |
| 10 |
| 11 namespace base { |
| 12 class SingleThreadTaskRunner; |
| 13 } // namespace base |
| 14 |
| 15 namespace blink { |
| 16 class WebWorkerFetchContext; |
| 17 } // namespace blink |
| 18 |
| 19 namespace content { |
| 20 |
| 21 class ServiceWorkerFetchContextInfoImpl |
| 22 : public blink::WebWorkerFetchContextInfo { |
| 23 public: |
| 24 ServiceWorkerFetchContextInfoImpl( |
| 25 mojom::WorkerFetchContextFactoryPtrInfo factory_info, |
| 26 int service_worker_provider_id); |
| 27 ~ServiceWorkerFetchContextInfoImpl() override; |
| 28 |
| 29 std::unique_ptr<blink::WebWorkerFetchContext> CreateContext( |
| 30 base::SingleThreadTaskRunner* loading_task_runner) override; |
| 31 |
| 32 private: |
| 33 mojom::WorkerFetchContextFactoryPtrInfo factory_info_; |
| 34 }; |
| 35 |
| 36 } // namespace content |
| 37 |
| 38 #endif // CONTENT_RENDERER_SERVICE_WORKER_SERVICE_WORKER_FETCH_CONTEXT_INFO_IMP
L_H_ |
OLD | NEW |