OLD | NEW |
---|---|
(Empty) | |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef CONTENT_BROWSER_LOADER_URL_LOADER_FACTORY_HOLDER_H_ | |
6 #define CONTENT_BROWSER_LOADER_URL_LOADER_FACTORY_HOLDER_H_ | |
7 | |
8 #include <memory> | |
9 | |
10 #include "base/macros.h" | |
11 #include "base/memory/ref_counted.h" | |
12 #include "content/common/content_export.h" | |
13 #include "mojo/public/cpp/bindings/interface_request.h" | |
14 | |
15 namespace content { | |
16 | |
17 class ResourceMessageFilter; | |
18 | |
19 namespace mojom { | |
20 class URLLoaderFactory; | |
21 } // namespace mojom | |
22 | |
23 // A URLLoaderFactoryHolder holds a URLLoaderFactory bound to the IO thread. A | |
24 // URLLoaderFactoryHolder instance itself is constrected and destructed | |
kinuko
2016/08/08 15:47:25
constrected -> constructed
yhirano
2016/08/09 06:35:48
Deleted
| |
25 // on the UI thread. | |
26 class CONTENT_EXPORT URLLoaderFactoryHolder final { | |
27 public: | |
28 URLLoaderFactoryHolder( | |
29 scoped_refptr<ResourceMessageFilter> resource_message_filter, | |
30 mojo::InterfaceRequest<mojom::URLLoaderFactory> request); | |
31 ~URLLoaderFactoryHolder(); | |
32 | |
33 private: | |
34 class URLLoaderFactoryImpl; | |
35 | |
36 std::unique_ptr<URLLoaderFactoryImpl> factory_; | |
37 | |
38 DISALLOW_COPY_AND_ASSIGN(URLLoaderFactoryHolder); | |
39 }; | |
40 | |
41 } // namespace content | |
42 | |
43 #endif // CONTENT_BROWSER_LOADER_URL_LOADER_FACTORY_HOLDER_H_ | |
OLD | NEW |