| 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 SHELL_NATIVE_APPLICATION_SUPPORT_H_ | 5 #ifndef MOJO_RUNNER_NATIVE_APPLICATION_SUPPORT_H_ |
| 6 #define SHELL_NATIVE_APPLICATION_SUPPORT_H_ | 6 #define MOJO_RUNNER_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 | 10 |
| 11 #if defined(OS_WIN) | 11 #if defined(OS_WIN) |
| 12 #undef DELETE | 12 #undef DELETE |
| 13 #endif | 13 #endif |
| 14 | 14 |
| 15 namespace base { | 15 namespace base { |
| 16 class FilePath; | 16 class FilePath; |
| (...skipping 24 matching lines...) Expand all Loading... |
| 41 // should be called on the same thread as |LoadNativeApplication()|. Returns | 41 // should be called on the same thread as |LoadNativeApplication()|. Returns |
| 42 // true if |MojoMain()| was called (even if it returns an error), and false | 42 // true if |MojoMain()| was called (even if it returns an error), and false |
| 43 // otherwise. | 43 // otherwise. |
| 44 // TODO(vtl): Maybe this should also have a |MojoResult| as an out parameter? | 44 // TODO(vtl): Maybe this should also have a |MojoResult| as an out parameter? |
| 45 bool RunNativeApplication(base::NativeLibrary app_library, | 45 bool RunNativeApplication(base::NativeLibrary app_library, |
| 46 InterfaceRequest<Application> application_request); | 46 InterfaceRequest<Application> application_request); |
| 47 | 47 |
| 48 } // namespace shell | 48 } // namespace shell |
| 49 } // namespace mojo | 49 } // namespace mojo |
| 50 | 50 |
| 51 #endif // SHELL_NATIVE_APPLICATION_SUPPORT_H_ | 51 #endif // MOJO_RUNNER_NATIVE_APPLICATION_SUPPORT_H_ |
| OLD | NEW |