| 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 16 matching lines...) Expand all Loading... |
| 27 private: | 27 private: |
| 28 // service_manager::Service: | 28 // service_manager::Service: |
| 29 void OnBindInterface(const service_manager::BindSourceInfo& source_info, | 29 void OnBindInterface(const service_manager::BindSourceInfo& source_info, |
| 30 const std::string& interface_name, | 30 const std::string& interface_name, |
| 31 mojo::ScopedMessagePipeHandle interface_pipe) override; | 31 mojo::ScopedMessagePipeHandle interface_pipe) override; |
| 32 | 32 |
| 33 void Create(const service_manager::BindSourceInfo& source_info, | 33 void Create(const service_manager::BindSourceInfo& source_info, |
| 34 mojom::TestServiceRequest request); | 34 mojom::TestServiceRequest request); |
| 35 | 35 |
| 36 // TestService: | 36 // TestService: |
| 37 void DoSomething(const DoSomethingCallback& callback) override; | 37 void DoSomething(DoSomethingCallback callback) override; |
| 38 void DoTerminateProcess(const DoTerminateProcessCallback& callback) override; | 38 void DoTerminateProcess(DoTerminateProcessCallback callback) override; |
| 39 void CreateFolder(const CreateFolderCallback& callback) override; | 39 void CreateFolder(CreateFolderCallback callback) override; |
| 40 void GetRequestorName(const GetRequestorNameCallback& callback) override; | 40 void GetRequestorName(GetRequestorNameCallback callback) override; |
| 41 void CreateSharedBuffer(const std::string& message, | 41 void CreateSharedBuffer(const std::string& message, |
| 42 const CreateSharedBufferCallback& callback) override; | 42 CreateSharedBufferCallback callback) override; |
| 43 | 43 |
| 44 service_manager::BinderRegistry registry_; | 44 service_manager::BinderRegistry registry_; |
| 45 mojo::Binding<mojom::TestService> service_binding_; | 45 mojo::Binding<mojom::TestService> service_binding_; |
| 46 | 46 |
| 47 // The name of the app connecting to us. | 47 // The name of the app connecting to us. |
| 48 std::string requestor_name_; | 48 std::string requestor_name_; |
| 49 | 49 |
| 50 DISALLOW_COPY_AND_ASSIGN(TestService); | 50 DISALLOW_COPY_AND_ASSIGN(TestService); |
| 51 }; | 51 }; |
| 52 | 52 |
| 53 } // namespace content | 53 } // namespace content |
| 54 | 54 |
| 55 #endif // CONTENT_PUBLIC_TEST_TEST_SERVICE_H_ | 55 #endif // CONTENT_PUBLIC_TEST_TEST_SERVICE_H_ |
| OLD | NEW |