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

Side by Side Diff: content/browser/mojo/mojo_application_host.h

Issue 236813002: Move Mojo channel initialization closer to IPC::Channel setup (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixup Created 6 years, 8 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 | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright 2014 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 CONTENT_BROWSER_MOJO_MOJO_APPLICATION_HOST_H_
6 #define CONTENT_BROWSER_MOJO_MOJO_APPLICATION_HOST_H_
7
8 #include "base/process/process_handle.h"
9 #include "content/common/mojo/mojo_channel_init.h"
10 #include "mojo/embedder/scoped_platform_handle.h"
11 #include "mojo/public/cpp/bindings/remote_ptr.h"
12 #include "mojo/public/interfaces/shell/shell.mojom.h"
13
14 namespace IPC {
15 class Sender;
16 }
17
18 namespace content {
19
20 class MojoApplicationHost {
sky 2014/04/16 17:18:10 Add description.
darin (slow to review) 2014/04/16 23:26:04 Will do.
21 public:
22 MojoApplicationHost();
23 ~MojoApplicationHost();
24
25 // Two-phase initialization:
26 // 1- Init makes the shell_client() available synchronously.
27 // 2- Activate establishes the actual connection to the peer process.
28 bool Init();
29 bool Activate(IPC::Sender* sender, base::ProcessHandle process_handle);
30
31 mojo::ShellClient* shell_client() { return shell_client_.get(); }
32
33 private:
34 MojoChannelInit channel_init_;
35 mojo::embedder::ScopedPlatformHandle client_handle_;
36 mojo::RemotePtr<mojo::ShellClient> shell_client_;
37 };
sky 2014/04/16 17:18:10 DISALLOW...
darin (slow to review) 2014/04/16 23:26:04 Will do.
38
39 } // namespace content
40
41 #endif // CONTENT_BROWSER_MOJO_MOJO_APPLICATION_HOST_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/mojo/mojo_application_host.cc » ('j') | content/browser/mojo/mojo_application_host.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698