Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(179)

Side by Side Diff: mojo/shell/native_runner_delegate.h

Issue 1769163002: Add a instance groups to Connect(), and introduce an Identity struct. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « mojo/shell/native_runner.h ('k') | mojo/shell/public/cpp/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 MOJO_SHELL_NATIVE_RUNNER_DELEGATE_H_
6 #define MOJO_SHELL_NATIVE_RUNNER_DELEGATE_H_ 6 #define MOJO_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 namespace shell { 14 namespace shell {
14 15
15 class Identity;
16
17 class NativeRunnerDelegate { 16 class NativeRunnerDelegate {
18 public: 17 public:
19 // Called to adjust the commandline for launching the specified app. 18 // Called to adjust the commandline for launching the specified app.
20 // WARNING: this is called on a background thread. 19 // WARNING: this is called on a background thread.
21 virtual void AdjustCommandLineArgumentsForTarget( 20 virtual void AdjustCommandLineArgumentsForTarget(
22 const Identity& target, 21 const Identity& target,
23 base::CommandLine* command_line) = 0; 22 base::CommandLine* command_line) = 0;
24 23
25 protected: 24 protected:
26 virtual ~NativeRunnerDelegate() {} 25 virtual ~NativeRunnerDelegate() {}
27 }; 26 };
28 27
29 } // namespace shell 28 } // namespace shell
30 } // namespace mojo 29 } // namespace mojo
31 30
32 #endif // MOJO_SHELL_NATIVE_RUNNER_DELEGATE_H_ 31 #endif // MOJO_SHELL_NATIVE_RUNNER_DELEGATE_H_
OLDNEW
« no previous file with comments | « mojo/shell/native_runner.h ('k') | mojo/shell/public/cpp/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698