summaryrefslogtreecommitdiffstats
path: root/mojo/shell/native_runner_delegate.h
blob: b732ec60c15be29bbdb20ea0ded89d167d5fe393 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
// Copyright 2016 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef MOJO_SHELL_NATIVE_RUNNER_DELEGATE_H_
#define MOJO_SHELL_NATIVE_RUNNER_DELEGATE_H_

namespace base {
class CommandLine;
}

namespace mojo {
class Identity;
namespace shell {

class NativeRunnerDelegate {
 public:
  // Called to adjust the commandline for launching the specified app.
  // WARNING: this is called on a background thread.
  virtual void AdjustCommandLineArgumentsForTarget(
      const Identity& target,
      base::CommandLine* command_line) = 0;

 protected:
  virtual ~NativeRunnerDelegate() {}
};

}  // namespace shell
}  // namespace mojo

#endif  // MOJO_SHELL_NATIVE_RUNNER_DELEGATE_H_