Chromium Code Reviews| Index: content/browser/loader/url_loader_factory_impl.h |
| diff --git a/content/browser/loader/url_loader_factory_impl.h b/content/browser/loader/url_loader_factory_impl.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..be4abfde0cffbfb3ebce4eaa762e87d4dcfee3bf |
| --- /dev/null |
| +++ b/content/browser/loader/url_loader_factory_impl.h |
| @@ -0,0 +1,33 @@ |
| +// 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.
|
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef CONTENT_BROWSER_LOADER_URL_LOADER_FACTORY_IMPL_H_ |
| +#define CONTENT_BROWSER_LOADER_URL_LOADER_FACTORY_IMPL_H_ |
| + |
| +#include "base/memory/ref_counted.h" |
| +#include "content/common/url_loader_factory.mojom.h" |
| +#include "mojo/public/cpp/bindings/binding.h" |
| +#include "mojo/public/cpp/bindings/interface_request.h" |
| + |
| +namespace content { |
| + |
| +class ResourceMessageFilter; |
| + |
| +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.
|
| + public: |
| + URLLoaderFactoryImpl( |
| + scoped_refptr<ResourceMessageFilter> resource_message_filter, |
| + mojo::InterfaceRequest<mojom::URLLoaderFactory> request); |
| + ~URLLoaderFactoryImpl() override; |
| + |
| + void CreateURLLoader(mojom::URLLoaderRequest request) override; |
| + |
| + private: |
| + scoped_refptr<ResourceMessageFilter> resource_message_filter_; |
| + mojo::Binding<mojom::URLLoaderFactory> binding_; |
| +}; |
| + |
| +} // namespace content |
| + |
| +#endif // CONTENT_BROWSER_LOADER_URL_LOADER_FACTORY_IMPL_H_ |