| 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" |
| 9 #include "content/public/common/network_service_test.mojom.h" |
| 8 #include "content/public/utility/content_utility_client.h" | 10 #include "content/public/utility/content_utility_client.h" |
| 9 | 11 |
| 10 namespace content { | 12 namespace content { |
| 11 | 13 |
| 12 class ShellContentUtilityClient : public ContentUtilityClient { | 14 class ShellContentUtilityClient : public ContentUtilityClient { |
| 13 public: | 15 public: |
| 16 ShellContentUtilityClient(); |
| 14 ~ShellContentUtilityClient() override; | 17 ~ShellContentUtilityClient() override; |
| 15 | 18 |
| 16 // ContentUtilityClient: | 19 // ContentUtilityClient: |
| 17 void UtilityThreadStarted() override; | 20 void UtilityThreadStarted() override; |
| 18 void RegisterServices(StaticServiceMap* services) override; | 21 void RegisterServices(StaticServiceMap* services) override; |
| 22 void RegisterNetworkBinders( |
| 23 service_manager::BinderRegistry* registry) override; |
| 24 |
| 25 private: |
| 26 void Create(mojom::NetworkServiceTestRequest request); |
| 27 |
| 28 std::unique_ptr<mojom::NetworkServiceTest> network_service_test_; |
| 29 |
| 30 DISALLOW_COPY_AND_ASSIGN(ShellContentUtilityClient); |
| 19 }; | 31 }; |
| 20 | 32 |
| 21 } // namespace content | 33 } // namespace content |
| 22 | 34 |
| 23 #endif // CONTENT_SHELL_UTILITY_SHELL_CONTENT_UTILITY_CLIENT_H_ | 35 #endif // CONTENT_SHELL_UTILITY_SHELL_CONTENT_UTILITY_CLIENT_H_ |
| OLD | NEW |