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_WORKER_FETCH_CONTEXT_INFO_IMPL_H_ |
| 6 #define CONTENT_RENDERER_SERVICE_WORKER_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 WorkerFetchContextInfoImpl : public blink::WebWorkerFetchContextInfo { |
| 22 public: |
| 23 explicit WorkerFetchContextInfoImpl( |
| 24 mojom::WorkerFetchContextFactoryPtrInfo factory_info); |
| 25 ~WorkerFetchContextInfoImpl() override; |
| 26 |
| 27 std::unique_ptr<blink::WebWorkerFetchContext> CreateContext( |
| 28 base::SingleThreadTaskRunner* loading_task_runner) override; |
| 29 |
| 30 private: |
| 31 mojom::WorkerFetchContextFactoryPtrInfo factory_info_; |
| 32 }; |
| 33 |
| 34 } // namespace content |
| 35 |
| 36 #endif // CONTENT_RENDERER_SERVICE_WORKER_WORKER_FETCH_CONTEXT_INFO_IMPL_H_ |
OLD | NEW |