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

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

Issue 25895002: Simple shell that loads a dll and calls an entrypoint function passing in a handle to a pipe create… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: exports to template instantiations Created 7 years, 2 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 (c) 2013 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_SHELL_APP_CONTAINER_H_
6 #define MOJO_SHELL_APP_CONTAINER_H_
7
8 #include "base/basictypes.h"
9 #include "base/memory/weak_ptr.h"
10 #include "mojo/public/system/core.h"
11
12 namespace base {
13 class Thread;
14 }
15
16 namespace mojo {
17 namespace shell {
18
19 // A container class that runs an app on its own thread.
20 class AppContainer {
21 public:
22 AppContainer();
23 ~AppContainer();
24
25 void LaunchApp(const base::FilePath& app_path);
26
27 private:
28 void AppCompleted();
29
30 base::WeakPtrFactory<AppContainer> weak_factory_;
31
32 scoped_ptr<base::Thread> thread_;
33
34 // Following members are valid only on app thread.
35 Handle shell_handle_;
36
37 DISALLOW_COPY_AND_ASSIGN(AppContainer);
38 };
39
40 } // namespace shell
41 } // namespace mojo
42
43 #endif // MOJO_SHELL_APP_CONTAINER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698