| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef MOJO_SERVICES_NETWORK_NETWORK_SERVICE_IMPL_H_ | 5 #ifndef MOJO_SERVICES_NETWORK_NETWORK_SERVICE_IMPL_H_ |
| 6 #define MOJO_SERVICES_NETWORK_NETWORK_SERVICE_IMPL_H_ | 6 #define MOJO_SERVICES_NETWORK_NETWORK_SERVICE_IMPL_H_ |
| 7 | 7 |
| 8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
| 9 #include "mojo/application/public/cpp/app_lifetime_helper.h" | 9 #include "mojo/application/public/cpp/app_lifetime_helper.h" |
| 10 #include "mojo/public/cpp/bindings/strong_binding.h" |
| 10 #include "mojo/services/network/public/interfaces/network_service.mojom.h" | 11 #include "mojo/services/network/public/interfaces/network_service.mojom.h" |
| 11 #include "third_party/mojo/src/mojo/public/cpp/bindings/strong_binding.h" | |
| 12 #include "url/gurl.h" | 12 #include "url/gurl.h" |
| 13 | 13 |
| 14 namespace mojo { | 14 namespace mojo { |
| 15 | 15 |
| 16 class NetworkServiceImpl : public NetworkService { | 16 class NetworkServiceImpl : public NetworkService { |
| 17 public: | 17 public: |
| 18 NetworkServiceImpl(scoped_ptr<mojo::AppRefCount> app_refcount, | 18 NetworkServiceImpl(scoped_ptr<mojo::AppRefCount> app_refcount, |
| 19 InterfaceRequest<NetworkService> request); | 19 InterfaceRequest<NetworkService> request); |
| 20 ~NetworkServiceImpl() override; | 20 ~NetworkServiceImpl() override; |
| 21 | 21 |
| (...skipping 17 matching lines...) Expand all Loading... |
| 39 const GetMimeTypeFromFileCallback& callback) override; | 39 const GetMimeTypeFromFileCallback& callback) override; |
| 40 | 40 |
| 41 private: | 41 private: |
| 42 scoped_ptr<mojo::AppRefCount> app_refcount_; | 42 scoped_ptr<mojo::AppRefCount> app_refcount_; |
| 43 StrongBinding<NetworkService> binding_; | 43 StrongBinding<NetworkService> binding_; |
| 44 }; | 44 }; |
| 45 | 45 |
| 46 } // namespace mojo | 46 } // namespace mojo |
| 47 | 47 |
| 48 #endif // MOJO_SERVICES_NETWORK_NETWORK_SERVICE_IMPL_H_ | 48 #endif // MOJO_SERVICES_NETWORK_NETWORK_SERVICE_IMPL_H_ |
| OLD | NEW |