| 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_MOJO_APP_H_ | 5 #ifndef CONTENT_PUBLIC_TEST_TEST_MOJO_APP_H_ |
| 6 #define CONTENT_PUBLIC_TEST_TEST_MOJO_APP_H_ | 6 #define CONTENT_PUBLIC_TEST_TEST_MOJO_APP_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| (...skipping 22 matching lines...) Expand all Loading... |
| 33 | 33 |
| 34 // shell::InterfaceFactory<mojom::TestMojoService>: | 34 // shell::InterfaceFactory<mojom::TestMojoService>: |
| 35 void Create(const shell::Identity& remote_identity, | 35 void Create(const shell::Identity& remote_identity, |
| 36 mojo::InterfaceRequest<mojom::TestMojoService> request) override; | 36 mojo::InterfaceRequest<mojom::TestMojoService> request) override; |
| 37 | 37 |
| 38 // TestMojoService: | 38 // TestMojoService: |
| 39 void DoSomething(const DoSomethingCallback& callback) override; | 39 void DoSomething(const DoSomethingCallback& callback) override; |
| 40 void DoTerminateProcess(const DoTerminateProcessCallback& callback) override; | 40 void DoTerminateProcess(const DoTerminateProcessCallback& callback) override; |
| 41 void CreateFolder(const CreateFolderCallback& callback) override; | 41 void CreateFolder(const CreateFolderCallback& callback) override; |
| 42 void GetRequestorName(const GetRequestorNameCallback& callback) override; | 42 void GetRequestorName(const GetRequestorNameCallback& callback) override; |
| 43 void CreateSharedBuffer(const std::string& message, |
| 44 const CreateSharedBufferCallback& callback) override; |
| 43 | 45 |
| 44 mojo::Binding<mojom::TestMojoService> service_binding_; | 46 mojo::Binding<mojom::TestMojoService> service_binding_; |
| 45 | 47 |
| 46 // The name of the app connecting to us. | 48 // The name of the app connecting to us. |
| 47 std::string requestor_name_; | 49 std::string requestor_name_; |
| 48 | 50 |
| 49 DISALLOW_COPY_AND_ASSIGN(TestMojoApp); | 51 DISALLOW_COPY_AND_ASSIGN(TestMojoApp); |
| 50 }; | 52 }; |
| 51 | 53 |
| 52 } // namespace content | 54 } // namespace content |
| 53 | 55 |
| 54 #endif // CONTENT_PUBLIC_TEST_TEST_MOJO_APP_H_ | 56 #endif // CONTENT_PUBLIC_TEST_TEST_MOJO_APP_H_ |
| OLD | NEW |