Chromium Code Reviews| 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" |
| 11 #include "services/service_manager/public/cpp/interface_factory.h" | |
| 9 | 12 |
| 10 namespace content { | 13 namespace content { |
| 11 | 14 |
| 12 class ShellContentUtilityClient : public ContentUtilityClient { | 15 class ShellContentUtilityClient |
| 16 : public ContentUtilityClient, | |
| 17 public service_manager::InterfaceFactory<mojom::NetworkServiceTest> { | |
| 13 public: | 18 public: |
| 19 ShellContentUtilityClient(); | |
| 14 ~ShellContentUtilityClient() override; | 20 ~ShellContentUtilityClient() override; |
| 15 | 21 |
| 16 // ContentUtilityClient: | 22 // ContentUtilityClient: |
| 17 void UtilityThreadStarted() override; | 23 void UtilityThreadStarted() override; |
| 18 void RegisterServices(StaticServiceMap* services) override; | 24 void RegisterServices(StaticServiceMap* services) override; |
| 25 void RegisterNetworkServices( | |
|
Ken Rockot(use gerrit already)
2017/04/25 17:36:09
nit: RegisterNetworkBinders?
jam
2017/04/25 18:19:37
Done.
| |
| 26 service_manager::BinderRegistry* registry) override; | |
| 27 | |
| 28 // service_manager::InterfaceFactory<mojom::NetworkServiceTest>: | |
| 29 void Create(const service_manager::Identity& remote_identity, | |
|
Ken Rockot(use gerrit already)
2017/04/25 17:36:09
nit: Could be private. Also having a Create method
jam
2017/04/25 18:19:37
Done.
| |
| 30 mojom::NetworkServiceTestRequest request) override; | |
| 31 | |
| 32 private: | |
| 33 std::unique_ptr<mojom::NetworkServiceTest> network_service_test_; | |
| 34 | |
| 35 DISALLOW_COPY_AND_ASSIGN(ShellContentUtilityClient); | |
| 19 }; | 36 }; |
| 20 | 37 |
| 21 } // namespace content | 38 } // namespace content |
| 22 | 39 |
| 23 #endif // CONTENT_SHELL_UTILITY_SHELL_CONTENT_UTILITY_CLIENT_H_ | 40 #endif // CONTENT_SHELL_UTILITY_SHELL_CONTENT_UTILITY_CLIENT_H_ |
| OLD | NEW |