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

Unified Diff: mojo/shell/native_runner_delegate.h

Issue 1722743002: Adds ability for chrome to behave as mojo_runner (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge to tip of tree Created 4 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: mojo/shell/native_runner_delegate.h
diff --git a/mojo/shell/native_runner_delegate.h b/mojo/shell/native_runner_delegate.h
new file mode 100644
index 0000000000000000000000000000000000000000..d2fe8263dee44a5d6bb646356dfac5d843d7aa16
--- /dev/null
+++ b/mojo/shell/native_runner_delegate.h
@@ -0,0 +1,32 @@
+// 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 {
+namespace shell {
+
+class Identity;
+
+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_

Powered by Google App Engine
This is Rietveld 408576698