| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 MOJO_SHELL_RUNNER_HOST_NATIVE_APPLICATION_SUPPORT_H_ | 5 #ifndef SERVICES_SHELL_RUNNER_HOST_NATIVE_APPLICATION_SUPPORT_H_ |
| 6 #define MOJO_SHELL_RUNNER_HOST_NATIVE_APPLICATION_SUPPORT_H_ | 6 #define SERVICES_SHELL_RUNNER_HOST_NATIVE_APPLICATION_SUPPORT_H_ |
| 7 | 7 |
| 8 #include "base/native_library.h" | 8 #include "base/native_library.h" |
| 9 #include "mojo/public/cpp/bindings/interface_request.h" | 9 #include "mojo/public/cpp/bindings/interface_request.h" |
| 10 #include "mojo/shell/public/interfaces/shell_client.mojom.h" | 10 #include "services/shell/public/interfaces/shell_client.mojom.h" |
| 11 | 11 |
| 12 namespace base { | 12 namespace base { |
| 13 class FilePath; | 13 class FilePath; |
| 14 } | 14 } |
| 15 | 15 |
| 16 namespace mojo { | 16 namespace mojo { |
| 17 class Application; | 17 class Application; |
| 18 namespace shell { | 18 namespace shell { |
| 19 | 19 |
| 20 // Loads the native Mojo application from the DSO specified by |app_path|. | 20 // Loads the native Mojo application from the DSO specified by |app_path|. |
| (...skipping 10 matching lines...) Expand all Loading... |
| 31 // |LoadNativeApplication()|; this tolerates |app_library| being null. This | 31 // |LoadNativeApplication()|; this tolerates |app_library| being null. This |
| 32 // should be called on the same thread as |LoadNativeApplication()|. Returns | 32 // should be called on the same thread as |LoadNativeApplication()|. Returns |
| 33 // true if |MojoMain()| was called (even if it returns an error), and false | 33 // true if |MojoMain()| was called (even if it returns an error), and false |
| 34 // otherwise. | 34 // otherwise. |
| 35 bool RunNativeApplication(base::NativeLibrary app_library, | 35 bool RunNativeApplication(base::NativeLibrary app_library, |
| 36 InterfaceRequest<mojom::ShellClient> request); | 36 InterfaceRequest<mojom::ShellClient> request); |
| 37 | 37 |
| 38 } // namespace shell | 38 } // namespace shell |
| 39 } // namespace mojo | 39 } // namespace mojo |
| 40 | 40 |
| 41 #endif // MOJO_SHELL_RUNNER_HOST_NATIVE_APPLICATION_SUPPORT_H_ | 41 #endif // SERVICES_SHELL_RUNNER_HOST_NATIVE_APPLICATION_SUPPORT_H_ |
| OLD | NEW |