OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | |
jam
2016/05/13 00:55:05
nit: please add entries for this file and its impl
yhirano
2016/05/17 12:38:49
Done.
| |
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_IMPL_H_ | |
6 #define CONTENT_BROWSER_LOADER_URL_LOADER_FACTORY_IMPL_H_ | |
7 | |
8 #include "base/memory/ref_counted.h" | |
9 #include "content/common/url_loader_factory.mojom.h" | |
10 #include "mojo/public/cpp/bindings/binding.h" | |
11 #include "mojo/public/cpp/bindings/interface_request.h" | |
12 | |
13 namespace content { | |
14 | |
15 class ResourceMessageFilter; | |
16 | |
17 class URLLoaderFactoryImpl final : public mojom::URLLoaderFactory { | |
jam
2016/05/13 00:55:06
nit: add class comment
yhirano
2016/05/17 12:38:49
Done.
| |
18 public: | |
19 URLLoaderFactoryImpl( | |
20 scoped_refptr<ResourceMessageFilter> resource_message_filter, | |
21 mojo::InterfaceRequest<mojom::URLLoaderFactory> request); | |
22 ~URLLoaderFactoryImpl() override; | |
23 | |
24 void CreateURLLoader(mojom::URLLoaderRequest request) override; | |
25 | |
26 private: | |
27 scoped_refptr<ResourceMessageFilter> resource_message_filter_; | |
28 mojo::Binding<mojom::URLLoaderFactory> binding_; | |
29 }; | |
30 | |
31 } // namespace content | |
32 | |
33 #endif // CONTENT_BROWSER_LOADER_URL_LOADER_FACTORY_IMPL_H_ | |
OLD | NEW |