Chromium Code Reviews| Index: content/browser/loader/url_loader_factory_holder.h |
| diff --git a/content/browser/loader/url_loader_factory_holder.h b/content/browser/loader/url_loader_factory_holder.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..3b5dde53265f5969b26706e3f496fb59d08d2e94 |
| --- /dev/null |
| +++ b/content/browser/loader/url_loader_factory_holder.h |
| @@ -0,0 +1,39 @@ |
| +// Copyright 2016 The Chromium Authors. All rights reserved. |
| +// 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_HOLDER_H_ |
| +#define CONTENT_BROWSER_LOADER_URL_LOADER_FACTORY_HOLDER_H_ |
| + |
| +#include <memory> |
| + |
| +#include "base/compiler_specific.h" |
|
mmenke
2016/07/19 20:50:27
macros.h is where DISALLOW_COPY_AND_ASSIGN is now
yhirano
2016/07/20 13:38:36
Done.
|
| +#include "base/memory/ref_counted.h" |
| +#include "content/common/content_export.h" |
| +#include "mojo/public/cpp/bindings/interface_request.h" |
| + |
| +namespace content { |
| + |
| +class ResourceMessageFilter; |
| + |
| +namespace mojom { |
| +class URLLoaderFactory; |
| +} // namespace mojom |
| + |
| +class CONTENT_EXPORT URLLoaderFactoryHolder final { |
| + public: |
| + URLLoaderFactoryHolder( |
| + scoped_refptr<ResourceMessageFilter> resource_message_filter, |
| + mojo::InterfaceRequest<mojom::URLLoaderFactory> request); |
| + ~URLLoaderFactoryHolder(); |
| + |
| + private: |
| + class URLLoaderFactoryImpl; |
|
mmenke
2016/07/19 20:50:27
Suggest a blank line here.
yhirano
2016/07/20 13:38:36
Done.
|
| + std::unique_ptr<URLLoaderFactoryImpl> factory_; |
| + |
| + DISALLOW_COPY_AND_ASSIGN(URLLoaderFactoryHolder); |
| +}; |
| + |
| +} // namespace content |
| + |
| +#endif // CONTENT_BROWSER_LOADER_URL_LOADER_FACTORY_HOLDER_H_ |