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

Side by Side Diff: chrome/browser/mojo_runner_state.h

Issue 1423063004: Allow Chrome to bind an Application request from mojo_runner. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@callback
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 | « chrome/browser/chrome_browser_main.cc ('k') | chrome/browser/mojo_runner_state.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 CHROME_BROWSER_MOJO_RUNNER_STATE_H_
6 #define CHROME_BROWSER_MOJO_RUNNER_STATE_H_
7
8 #include "base/macros.h"
9 #include "base/memory/scoped_ptr.h"
10
11 namespace mojo {
12 class ApplicationImpl;
13 namespace runner {
14 class RunnerConnection;
15 }
16 }
17
18 class ChromeApplicationDelegate;
19
20 // Encapsulates a connection to a spawning mojo_runner/shell.
21 // TODO(beng): figure out if/how this should be exposed to other layers
22 // of code in Chrome.
23 class MojoRunnerState {
24 public:
25 MojoRunnerState();
26 ~MojoRunnerState();
27
28 // Blocks the calling thread until a connection to the spawning mojo_runner
29 // is established, an Application request from it is bound, and the
30 // Initialize() method on that application is called.
31 void WaitForConnection();
32
33 private:
34 scoped_ptr<mojo::runner::RunnerConnection> runner_connection_;
35 scoped_ptr<mojo::ApplicationImpl> application_impl_;
36 scoped_ptr<ChromeApplicationDelegate> application_delegate_;
37
38 DISALLOW_COPY_AND_ASSIGN(MojoRunnerState);
39 };
40
41 #endif // CHROME_BROWSER_MOJO_RUNNER_STATE_H_
OLDNEW
« no previous file with comments | « chrome/browser/chrome_browser_main.cc ('k') | chrome/browser/mojo_runner_state.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698