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

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

Issue 394903005: mojo: terminate apps if the shell goes away (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: disable tests that touch nss for now Created 6 years, 4 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
« no previous file with comments | « mojo/shell/BUILD.gn ('k') | mojo/shell/context.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_CONTEXT_H_ 5 #ifndef MOJO_SHELL_CONTEXT_H_
6 #define MOJO_SHELL_CONTEXT_H_ 6 #define MOJO_SHELL_CONTEXT_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "mojo/service_manager/service_manager.h" 10 #include "mojo/service_manager/service_manager.h"
(...skipping 13 matching lines...) Expand all
24 24
25 class DynamicServiceLoader; 25 class DynamicServiceLoader;
26 26
27 // The "global" context for the shell's main process. 27 // The "global" context for the shell's main process.
28 class Context { 28 class Context {
29 public: 29 public:
30 Context(); 30 Context();
31 ~Context(); 31 ~Context();
32 32
33 void Init(); 33 void Init();
34 // Tear down context in safe order prior to deleting. Shutdown() is also
35 // called by the destructor.
36 void Shutdown();
37 34
38 TaskRunners* task_runners() { return task_runners_.get(); } 35 TaskRunners* task_runners() { return task_runners_.get(); }
39 ServiceManager* service_manager() { return &service_manager_; } 36 ServiceManager* service_manager() { return &service_manager_; }
40 KeepAliveCounter* keep_alive_counter() { return &keep_alive_counter_; } 37 KeepAliveCounter* keep_alive_counter() { return &keep_alive_counter_; }
41 MojoURLResolver* mojo_url_resolver() { return &mojo_url_resolver_; } 38 MojoURLResolver* mojo_url_resolver() { return &mojo_url_resolver_; }
42 39
43 #if defined(OS_ANDROID) 40 #if defined(OS_ANDROID)
44 base::MessageLoop* ui_loop() const { return ui_loop_; } 41 base::MessageLoop* ui_loop() const { return ui_loop_; }
45 void set_ui_loop(base::MessageLoop* ui_loop) { ui_loop_ = ui_loop; } 42 void set_ui_loop(base::MessageLoop* ui_loop) { ui_loop_ = ui_loop; }
46 #endif // defined(OS_ANDROID) 43 #endif // defined(OS_ANDROID)
(...skipping 11 matching lines...) Expand all
58 55
59 KeepAliveCounter keep_alive_counter_; 56 KeepAliveCounter keep_alive_counter_;
60 57
61 DISALLOW_COPY_AND_ASSIGN(Context); 58 DISALLOW_COPY_AND_ASSIGN(Context);
62 }; 59 };
63 60
64 } // namespace shell 61 } // namespace shell
65 } // namespace mojo 62 } // namespace mojo
66 63
67 #endif // MOJO_SHELL_CONTEXT_H_ 64 #endif // MOJO_SHELL_CONTEXT_H_
OLDNEW
« no previous file with comments | « mojo/shell/BUILD.gn ('k') | mojo/shell/context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698