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

Side by Side Diff: mojo/runner/child/runner_connection.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
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef MOJO_RUNNER_CHILD_RUNNER_CONNECTION_H_
6 #define MOJO_RUNNER_CHILD_RUNNER_CONNECTION_H_
7
8 #include "base/macros.h"
9 #include "mojo/application/public/interfaces/application.mojom.h"
10
11 namespace mojo {
12 namespace runner {
13
14 // Encapsulates a connection to a runner process. The connection object starts a
15 // background controller thread that is used to receive control messages from
16 // the runner. When this object is destroyed the thread is joined.
17 class RunnerConnection {
18 public:
19 virtual ~RunnerConnection();
20
21 // Establish a connection to the runner, blocking the calling thread until
22 // it is established. The Application request from the runner is returned via
23 // |request|.
24 // If a connection to the runner cannot be established, |request| will not be
25 // modified and this function will return null.
26 static RunnerConnection* ConnectToRunner(
27 InterfaceRequest<Application>* request);
28
29 protected:
30 RunnerConnection();
31
32 private:
33 DISALLOW_COPY_AND_ASSIGN(RunnerConnection);
34 };
35
36 } // namespace runner
37 } // namespace mojo
38
39 #endif // MOJO_RUNNER_CHILD_RUNNER_CONNECTION_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698