OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CONTENT_BROWSER_LOADER_URL_LOADER_FACTORY_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_LOADER_URL_LOADER_FACTORY_IMPL_H_ |
6 #define CONTENT_BROWSER_LOADER_URL_LOADER_FACTORY_IMPL_H_ | 6 #define CONTENT_BROWSER_LOADER_URL_LOADER_FACTORY_IMPL_H_ |
7 | 7 |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
10 #include "base/single_thread_task_runner.h" | 10 #include "base/single_thread_task_runner.h" |
11 #include "content/common/content_export.h" | 11 #include "content/common/content_export.h" |
12 #include "content/common/url_loader_factory.mojom.h" | 12 #include "content/public/common/url_loader_factory.mojom.h" |
13 #include "net/traffic_annotation/network_traffic_annotation.h" | 13 #include "net/traffic_annotation/network_traffic_annotation.h" |
14 | 14 |
15 namespace content { | 15 namespace content { |
16 | 16 |
17 class ResourceRequesterInfo; | 17 class ResourceRequesterInfo; |
18 | 18 |
19 // This class is an implementation of mojom::URLLoaderFactory that creates | 19 // This class is an implementation of mojom::URLLoaderFactory that creates |
20 // a mojom::URLLoader. This class is instantiated only for Service Worker | 20 // a mojom::URLLoader. This class is instantiated only for Service Worker |
21 // navigation preload or test caseses. | 21 // navigation preload or test caseses. |
22 class URLLoaderFactoryImpl final : public mojom::URLLoaderFactory { | 22 class URLLoaderFactoryImpl final : public mojom::URLLoaderFactory { |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 | 67 |
68 // Task runner for the IO thead. | 68 // Task runner for the IO thead. |
69 scoped_refptr<base::SingleThreadTaskRunner> io_thread_task_runner_; | 69 scoped_refptr<base::SingleThreadTaskRunner> io_thread_task_runner_; |
70 | 70 |
71 DISALLOW_COPY_AND_ASSIGN(URLLoaderFactoryImpl); | 71 DISALLOW_COPY_AND_ASSIGN(URLLoaderFactoryImpl); |
72 }; | 72 }; |
73 | 73 |
74 } // namespace content | 74 } // namespace content |
75 | 75 |
76 #endif // CONTENT_BROWSER_LOADER_URL_LOADER_FACTORY_IMPL_H_ | 76 #endif // CONTENT_BROWSER_LOADER_URL_LOADER_FACTORY_IMPL_H_ |
OLD | NEW |