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_RUNNER_NATIVE_APPLICATION_SUPPORT_H_ | 5 #ifndef MOJO_RUNNER_NATIVE_APPLICATION_SUPPORT_H_ |
6 #define MOJO_RUNNER_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 #include "mojo/shell/native_runner.h" | 10 #include "mojo/shell/native_runner.h" |
11 | 11 |
12 #if defined(OS_WIN) | |
13 #undef DELETE | |
14 #endif | |
15 | |
16 namespace base { | 12 namespace base { |
17 class FilePath; | 13 class FilePath; |
18 } | 14 } |
19 | 15 |
20 namespace mojo { | 16 namespace mojo { |
21 | 17 |
22 class Application; | 18 class Application; |
23 | 19 |
24 namespace runner { | 20 namespace runner { |
25 | 21 |
(...skipping 16 matching lines...) Expand all Loading... |
42 // true if |MojoMain()| was called (even if it returns an error), and false | 38 // true if |MojoMain()| was called (even if it returns an error), and false |
43 // otherwise. | 39 // otherwise. |
44 // TODO(vtl): Maybe this should also have a |MojoResult| as an out parameter? | 40 // TODO(vtl): Maybe this should also have a |MojoResult| as an out parameter? |
45 bool RunNativeApplication(base::NativeLibrary app_library, | 41 bool RunNativeApplication(base::NativeLibrary app_library, |
46 InterfaceRequest<Application> application_request); | 42 InterfaceRequest<Application> application_request); |
47 | 43 |
48 } // namespace runner | 44 } // namespace runner |
49 } // namespace mojo | 45 } // namespace mojo |
50 | 46 |
51 #endif // MOJO_RUNNER_NATIVE_APPLICATION_SUPPORT_H_ | 47 #endif // MOJO_RUNNER_NATIVE_APPLICATION_SUPPORT_H_ |
OLD | NEW |