| OLD | NEW |
| (Empty) |
| 1 // Copyright 2015 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 MOJO_SERVICES_NETWORK_URL_LOADER_FACTORY_IMPL_H_ | |
| 6 #define MOJO_SERVICES_NETWORK_URL_LOADER_FACTORY_IMPL_H_ | |
| 7 | |
| 8 #include "base/compiler_specific.h" | |
| 9 #include "base/macros.h" | |
| 10 #include "mojo/public/cpp/bindings/strong_binding.h" | |
| 11 #include "mojo/services/network/public/interfaces/url_loader_factory.mojom.h" | |
| 12 #include "mojo/shell/public/cpp/message_loop_ref.h" | |
| 13 | |
| 14 namespace mojo { | |
| 15 class NetworkContext; | |
| 16 | |
| 17 class URLLoaderFactoryImpl : public URLLoaderFactory { | |
| 18 public: | |
| 19 URLLoaderFactoryImpl(NetworkContext* context, | |
| 20 scoped_ptr<mojo::MessageLoopRef> app_refcount, | |
| 21 InterfaceRequest<URLLoaderFactory> request); | |
| 22 ~URLLoaderFactoryImpl() override; | |
| 23 | |
| 24 // URLLoaderFactory methods: | |
| 25 void CreateURLLoader(InterfaceRequest<URLLoader> loader) override; | |
| 26 | |
| 27 private: | |
| 28 NetworkContext* context_; | |
| 29 scoped_ptr<mojo::MessageLoopRef> app_refcount_; | |
| 30 StrongBinding<URLLoaderFactory> binding_; | |
| 31 | |
| 32 DISALLOW_COPY_AND_ASSIGN(URLLoaderFactoryImpl); | |
| 33 }; | |
| 34 | |
| 35 } // namespace mojo | |
| 36 | |
| 37 #endif // MOJO_SERVICES_NETWORK_URL_LOADER_FACTORY_IMPL_H_ | |
| OLD | NEW |