| 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_PUBLIC_TEST_TEST_SERVICE_H_ | 5 #ifndef CONTENT_PUBLIC_TEST_TEST_SERVICE_H_ |
| 6 #define CONTENT_PUBLIC_TEST_TEST_SERVICE_H_ | 6 #define CONTENT_PUBLIC_TEST_TEST_SERVICE_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 class TestService | 22 class TestService |
| 23 : public service_manager::Service, | 23 : public service_manager::Service, |
| 24 public service_manager::InterfaceFactory<mojom::TestService>, | 24 public service_manager::InterfaceFactory<mojom::TestService>, |
| 25 public mojom::TestService { | 25 public mojom::TestService { |
| 26 public: | 26 public: |
| 27 TestService(); | 27 TestService(); |
| 28 ~TestService() override; | 28 ~TestService() override; |
| 29 | 29 |
| 30 private: | 30 private: |
| 31 // service_manager::Service: | 31 // service_manager::Service: |
| 32 bool OnConnect(const service_manager::Identity& remote_identity, | 32 bool OnConnect(const service_manager::ServiceInfo& remote_info, |
| 33 service_manager::InterfaceRegistry* registry) override; | 33 service_manager::InterfaceRegistry* registry) override; |
| 34 | 34 |
| 35 // service_manager::InterfaceFactory<mojom::TestService>: | 35 // service_manager::InterfaceFactory<mojom::TestService>: |
| 36 void Create(const service_manager::Identity& remote_identity, | 36 void Create(const service_manager::Identity& remote_identity, |
| 37 mojom::TestServiceRequest request) override; | 37 mojom::TestServiceRequest request) override; |
| 38 | 38 |
| 39 // TestService: | 39 // TestService: |
| 40 void DoSomething(const DoSomethingCallback& callback) override; | 40 void DoSomething(const DoSomethingCallback& callback) override; |
| 41 void DoTerminateProcess(const DoTerminateProcessCallback& callback) override; | 41 void DoTerminateProcess(const DoTerminateProcessCallback& callback) override; |
| 42 void CreateFolder(const CreateFolderCallback& callback) override; | 42 void CreateFolder(const CreateFolderCallback& callback) override; |
| 43 void GetRequestorName(const GetRequestorNameCallback& callback) override; | 43 void GetRequestorName(const GetRequestorNameCallback& callback) override; |
| 44 void CreateSharedBuffer(const std::string& message, | 44 void CreateSharedBuffer(const std::string& message, |
| 45 const CreateSharedBufferCallback& callback) override; | 45 const CreateSharedBufferCallback& callback) override; |
| 46 | 46 |
| 47 mojo::Binding<mojom::TestService> service_binding_; | 47 mojo::Binding<mojom::TestService> service_binding_; |
| 48 | 48 |
| 49 // The name of the app connecting to us. | 49 // The name of the app connecting to us. |
| 50 std::string requestor_name_; | 50 std::string requestor_name_; |
| 51 | 51 |
| 52 DISALLOW_COPY_AND_ASSIGN(TestService); | 52 DISALLOW_COPY_AND_ASSIGN(TestService); |
| 53 }; | 53 }; |
| 54 | 54 |
| 55 } // namespace content | 55 } // namespace content |
| 56 | 56 |
| 57 #endif // CONTENT_PUBLIC_TEST_TEST_SERVICE_H_ | 57 #endif // CONTENT_PUBLIC_TEST_TEST_SERVICE_H_ |
| OLD | NEW |