| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 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 | 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 CONTENT_SHELL_UTILITY_SHELL_CONTENT_UTILITY_CLIENT_H_ | 5 #ifndef CONTENT_SHELL_UTILITY_SHELL_CONTENT_UTILITY_CLIENT_H_ |
| 6 #define CONTENT_SHELL_UTILITY_SHELL_CONTENT_UTILITY_CLIENT_H_ | 6 #define CONTENT_SHELL_UTILITY_SHELL_CONTENT_UTILITY_CLIENT_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "content/public/common/network_service_test.mojom.h" | 9 #include "content/public/common/network_service_test.mojom.h" |
| 10 #include "content/public/utility/content_utility_client.h" | 10 #include "content/public/utility/content_utility_client.h" |
| 11 | 11 |
| 12 namespace service_manager { |
| 13 struct BindSourceInfo; |
| 14 } |
| 15 |
| 12 namespace content { | 16 namespace content { |
| 13 | 17 |
| 14 class ShellContentUtilityClient : public ContentUtilityClient { | 18 class ShellContentUtilityClient : public ContentUtilityClient { |
| 15 public: | 19 public: |
| 16 ShellContentUtilityClient(); | 20 ShellContentUtilityClient(); |
| 17 ~ShellContentUtilityClient() override; | 21 ~ShellContentUtilityClient() override; |
| 18 | 22 |
| 19 // ContentUtilityClient: | 23 // ContentUtilityClient: |
| 20 void UtilityThreadStarted() override; | 24 void UtilityThreadStarted() override; |
| 21 void RegisterServices(StaticServiceMap* services) override; | 25 void RegisterServices(StaticServiceMap* services) override; |
| 22 void RegisterNetworkBinders( | 26 void RegisterNetworkBinders( |
| 23 service_manager::BinderRegistry* registry) override; | 27 service_manager::BinderRegistry* registry) override; |
| 24 | 28 |
| 25 private: | 29 private: |
| 26 void Create(mojom::NetworkServiceTestRequest request); | 30 void BindNetworkServiceTestRequest( |
| 31 const service_manager::BindSourceInfo& source_info, |
| 32 mojom::NetworkServiceTestRequest request); |
| 27 | 33 |
| 28 std::unique_ptr<mojom::NetworkServiceTest> network_service_test_; | 34 std::unique_ptr<mojom::NetworkServiceTest> network_service_test_; |
| 29 | 35 |
| 30 DISALLOW_COPY_AND_ASSIGN(ShellContentUtilityClient); | 36 DISALLOW_COPY_AND_ASSIGN(ShellContentUtilityClient); |
| 31 }; | 37 }; |
| 32 | 38 |
| 33 } // namespace content | 39 } // namespace content |
| 34 | 40 |
| 35 #endif // CONTENT_SHELL_UTILITY_SHELL_CONTENT_UTILITY_CLIENT_H_ | 41 #endif // CONTENT_SHELL_UTILITY_SHELL_CONTENT_UTILITY_CLIENT_H_ |
| OLD | NEW |