OLD | NEW |
1 // Copyright 2017 The Chromium Authors. All rights reserved. | 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 | 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_URL_LOADER_FACTORY_GETTER_H_ | 5 #ifndef CONTENT_BROWSER_URL_LOADER_FACTORY_GETTER_H_ |
6 #define CONTENT_BROWSER_URL_LOADER_FACTORY_GETTER_H_ | 6 #define CONTENT_BROWSER_URL_LOADER_FACTORY_GETTER_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 "content/common/content_export.h" | 10 #include "content/common/content_export.h" |
11 #include "content/common/url_loader_factory.mojom.h" | |
12 #include "content/public/browser/browser_thread.h" | 11 #include "content/public/browser/browser_thread.h" |
| 12 #include "content/public/common/url_loader_factory.mojom.h" |
13 | 13 |
14 namespace content { | 14 namespace content { |
15 | 15 |
16 class StoragePartitionImpl; | 16 class StoragePartitionImpl; |
17 | 17 |
18 // Holds on to URLLoaderFactory for a given StoragePartition and allows code | 18 // Holds on to URLLoaderFactory for a given StoragePartition and allows code |
19 // running on the IO thread to access them. Note these are the factories used by | 19 // running on the IO thread to access them. Note these are the factories used by |
20 // the browser process for frame requests. | 20 // the browser process for frame requests. |
21 class URLLoaderFactoryGetter | 21 class URLLoaderFactoryGetter |
22 : public base::RefCountedThreadSafe<URLLoaderFactoryGetter, | 22 : public base::RefCountedThreadSafe<URLLoaderFactoryGetter, |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 mojom::URLLoaderFactoryPtr network_factory_; | 56 mojom::URLLoaderFactoryPtr network_factory_; |
57 mojom::URLLoaderFactoryPtr blob_factory_; | 57 mojom::URLLoaderFactoryPtr blob_factory_; |
58 mojom::URLLoaderFactoryPtr test_factory_; | 58 mojom::URLLoaderFactoryPtr test_factory_; |
59 | 59 |
60 DISALLOW_COPY_AND_ASSIGN(URLLoaderFactoryGetter); | 60 DISALLOW_COPY_AND_ASSIGN(URLLoaderFactoryGetter); |
61 }; | 61 }; |
62 | 62 |
63 } // namespace content | 63 } // namespace content |
64 | 64 |
65 #endif // CONTENT_BROWSER_URL_LOADER_FACTORY_GETTER_H_ | 65 #endif // CONTENT_BROWSER_URL_LOADER_FACTORY_GETTER_H_ |
OLD | NEW |