| 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 "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "content/public/test/test_mojo_service.mojom.h" | 9 #include "content/public/test/test_mojo_service.mojom.h" |
| 10 #include "mojo/application/public/cpp/application_delegate.h" | 10 #include "mojo/application/public/cpp/application_delegate.h" |
| 11 #include "mojo/application/public/cpp/interface_factory.h" | 11 #include "mojo/application/public/cpp/interface_factory.h" |
| 12 #include "third_party/mojo/src/mojo/public/cpp/bindings/binding.h" | 12 #include "mojo/public/cpp/bindings/binding.h" |
| 13 #include "url/gurl.h" | 13 #include "url/gurl.h" |
| 14 | 14 |
| 15 namespace content { | 15 namespace content { |
| 16 | 16 |
| 17 extern const char kTestMojoAppUrl[]; | 17 extern const char kTestMojoAppUrl[]; |
| 18 | 18 |
| 19 // Simple Mojo app which provides a TestMojoService impl. The app terminates | 19 // Simple Mojo app which provides a TestMojoService impl. The app terminates |
| 20 // itself after its TestService fulfills a single DoSomething call. | 20 // itself after its TestService fulfills a single DoSomething call. |
| 21 class TestMojoApp : public mojo::ApplicationDelegate, | 21 class TestMojoApp : public mojo::ApplicationDelegate, |
| 22 public mojo::InterfaceFactory<TestMojoService>, | 22 public mojo::InterfaceFactory<TestMojoService>, |
| (...skipping 23 matching lines...) Expand all Loading... |
| 46 | 46 |
| 47 // The URL of the app connecting to us. | 47 // The URL of the app connecting to us. |
| 48 GURL requestor_url_; | 48 GURL requestor_url_; |
| 49 | 49 |
| 50 DISALLOW_COPY_AND_ASSIGN(TestMojoApp); | 50 DISALLOW_COPY_AND_ASSIGN(TestMojoApp); |
| 51 }; | 51 }; |
| 52 | 52 |
| 53 } // namespace | 53 } // namespace |
| 54 | 54 |
| 55 #endif // CONTENT_PUBLIC_TEST_TEST_MOJO_APP_H_ | 55 #endif // CONTENT_PUBLIC_TEST_TEST_MOJO_APP_H_ |
| OLD | NEW |