OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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_DELEGATE_H_ | 5 #ifndef SERVICES_SHELL_NATIVE_RUNNER_DELEGATE_H_ |
6 #define MOJO_SHELL_NATIVE_RUNNER_DELEGATE_H_ | 6 #define SERVICES_SHELL_NATIVE_RUNNER_DELEGATE_H_ |
7 | 7 |
8 namespace base { | 8 namespace base { |
9 class CommandLine; | 9 class CommandLine; |
10 } | 10 } |
11 | 11 |
12 namespace mojo { | 12 namespace mojo { |
13 class Identity; | 13 class Identity; |
14 namespace shell { | 14 namespace shell { |
15 | 15 |
16 class NativeRunnerDelegate { | 16 class NativeRunnerDelegate { |
17 public: | 17 public: |
18 // Called to adjust the commandline for launching the specified app. | 18 // Called to adjust the commandline for launching the specified app. |
19 // WARNING: this is called on a background thread. | 19 // WARNING: this is called on a background thread. |
20 virtual void AdjustCommandLineArgumentsForTarget( | 20 virtual void AdjustCommandLineArgumentsForTarget( |
21 const Identity& target, | 21 const Identity& target, |
22 base::CommandLine* command_line) = 0; | 22 base::CommandLine* command_line) = 0; |
23 | 23 |
24 protected: | 24 protected: |
25 virtual ~NativeRunnerDelegate() {} | 25 virtual ~NativeRunnerDelegate() {} |
26 }; | 26 }; |
27 | 27 |
28 } // namespace shell | 28 } // namespace shell |
29 } // namespace mojo | 29 } // namespace mojo |
30 | 30 |
31 #endif // MOJO_SHELL_NATIVE_RUNNER_DELEGATE_H_ | 31 #endif // SERVICES_SHELL_NATIVE_RUNNER_DELEGATE_H_ |
OLD | NEW |