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 MOJO_SHELL_NATIVE_RUNNER_H_ | 5 #ifndef MOJO_SHELL_NATIVE_RUNNER_H_ |
6 #define MOJO_SHELL_NATIVE_RUNNER_H_ | 6 #define MOJO_SHELL_NATIVE_RUNNER_H_ |
7 | 7 |
8 #include "base/callback_forward.h" | 8 #include "base/callback_forward.h" |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "mojo/public/cpp/bindings/interface_request.h" | 10 #include "mojo/public/cpp/bindings/interface_request.h" |
11 #include "mojo/public/interfaces/application/application.mojom.h" | 11 #include "mojo/public/interfaces/application/application.mojom.h" |
12 | 12 |
| 13 #if defined(OS_WIN) |
| 14 #undef DELETE |
| 15 #endif |
| 16 |
13 namespace base { | 17 namespace base { |
14 class FilePath; | 18 class FilePath; |
15 } | 19 } |
16 | 20 |
17 namespace mojo { | 21 namespace mojo { |
18 namespace shell { | 22 namespace shell { |
19 | 23 |
20 enum class NativeApplicationCleanup { DELETE, DONT_DELETE }; | 24 enum class NativeApplicationCleanup { DELETE, DONT_DELETE }; |
21 | 25 |
22 // ApplicationManager requires implementations of NativeRunner and | 26 // ApplicationManager requires implementations of NativeRunner and |
(...skipping 27 matching lines...) Expand all Loading... |
50 }; | 54 }; |
51 | 55 |
52 virtual ~NativeRunnerFactory() {} | 56 virtual ~NativeRunnerFactory() {} |
53 virtual scoped_ptr<NativeRunner> Create(const Options& options) = 0; | 57 virtual scoped_ptr<NativeRunner> Create(const Options& options) = 0; |
54 }; | 58 }; |
55 | 59 |
56 } // namespace shell | 60 } // namespace shell |
57 } // namespace mojo | 61 } // namespace mojo |
58 | 62 |
59 #endif // MOJO_SHELL_NATIVE_RUNNER_H_ | 63 #endif // MOJO_SHELL_NATIVE_RUNNER_H_ |
OLD | NEW |