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

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

Issue 1419293003: Allow mojo_runner to connect to arbitrary executables. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 5 years, 1 month 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/application_manager.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/application/public/interfaces/application.mojom.h" 10 #include "mojo/application/public/interfaces/application.mojom.h"
(...skipping 25 matching lines...) Expand all
36 // file to decide what kind of NativeRunner to make. 36 // file to decide what kind of NativeRunner to make.
37 virtual void Start(const base::FilePath& app_path, 37 virtual void Start(const base::FilePath& app_path,
38 bool start_sandboxed, 38 bool start_sandboxed,
39 InterfaceRequest<Application> application_request, 39 InterfaceRequest<Application> application_request,
40 const base::Closure& app_completed_callback) = 0; 40 const base::Closure& app_completed_callback) = 0;
41 }; 41 };
42 42
43 class NativeRunnerFactory { 43 class NativeRunnerFactory {
44 public: 44 public:
45 virtual ~NativeRunnerFactory() {} 45 virtual ~NativeRunnerFactory() {}
46 virtual scoped_ptr<NativeRunner> Create() = 0; 46 virtual scoped_ptr<NativeRunner> Create(const base::FilePath& app_path) = 0;
47 }; 47 };
48 48
49 } // namespace shell 49 } // namespace shell
50 } // namespace mojo 50 } // namespace mojo
51 51
52 #endif // MOJO_SHELL_NATIVE_RUNNER_H_ 52 #endif // MOJO_SHELL_NATIVE_RUNNER_H_
OLDNEW
« no previous file with comments | « mojo/shell/application_manager.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698