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 class CONTENT_EXPORT URLLoaderFactoryHolder final { | |
kinuko
2016/08/04 16:07:03
nit: having a brief comment about its role/purpose
yhirano
2016/08/05 12:21:39
Done.
| |
24 public: | |
25 URLLoaderFactoryHolder( | |
26 scoped_refptr<ResourceMessageFilter> resource_message_filter, | |
27 mojo::InterfaceRequest<mojom::URLLoaderFactory> request); | |
28 ~URLLoaderFactoryHolder(); | |
29 | |
30 private: | |
31 class URLLoaderFactoryImpl; | |
32 | |
33 std::unique_ptr<URLLoaderFactoryImpl> factory_; | |
34 | |
35 DISALLOW_COPY_AND_ASSIGN(URLLoaderFactoryHolder); | |
36 }; | |
37 | |
38 } // namespace content | |
39 | |
40 #endif // CONTENT_BROWSER_LOADER_URL_LOADER_FACTORY_HOLDER_H_ | |
OLD | NEW |