OLD | NEW |
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_STANDALONE_CONTEXT_H_ | 5 #ifndef MOJO_SHELL_STANDALONE_CONTEXT_H_ |
6 #define MOJO_SHELL_STANDALONE_CONTEXT_H_ | 6 #define MOJO_SHELL_STANDALONE_CONTEXT_H_ |
7 | 7 |
8 #include "base/callback_forward.h" | 8 #include "base/callback_forward.h" |
9 #include "base/macros.h" | 9 #include "base/macros.h" |
10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
(...skipping 19 matching lines...) Expand all Loading... |
30 | 30 |
31 // The "global" context for the shell's main process. | 31 // The "global" context for the shell's main process. |
32 class Context : public edk::ProcessDelegate { | 32 class Context : public edk::ProcessDelegate { |
33 public: | 33 public: |
34 struct InitParams { | 34 struct InitParams { |
35 InitParams(); | 35 InitParams(); |
36 ~InitParams(); | 36 ~InitParams(); |
37 | 37 |
38 NativeRunnerDelegate* native_runner_delegate = nullptr; | 38 NativeRunnerDelegate* native_runner_delegate = nullptr; |
39 scoped_ptr<catalog::Store> catalog_store; | 39 scoped_ptr<catalog::Store> catalog_store; |
| 40 // If true the edk is initialized. |
| 41 bool init_edk = true; |
40 }; | 42 }; |
41 | 43 |
42 Context(); | 44 Context(); |
43 ~Context() override; | 45 ~Context() override; |
44 | 46 |
45 static void EnsureEmbedderIsInitialized(); | 47 static void EnsureEmbedderIsInitialized(); |
46 | 48 |
47 // This must be called with a message loop set up for the current thread, | 49 // This must be called with a message loop set up for the current thread, |
48 // which must remain alive until after Shutdown() is called. | 50 // which must remain alive until after Shutdown() is called. |
49 void Init(scoped_ptr<InitParams> init_params); | 51 void Init(scoped_ptr<InitParams> init_params); |
(...skipping 24 matching lines...) Expand all Loading... |
74 scoped_ptr<Shell> shell_; | 76 scoped_ptr<Shell> shell_; |
75 base::Time main_entry_time_; | 77 base::Time main_entry_time_; |
76 | 78 |
77 DISALLOW_COPY_AND_ASSIGN(Context); | 79 DISALLOW_COPY_AND_ASSIGN(Context); |
78 }; | 80 }; |
79 | 81 |
80 } // namespace shell | 82 } // namespace shell |
81 } // namespace mojo | 83 } // namespace mojo |
82 | 84 |
83 #endif // MOJO_SHELL_STANDALONE_CONTEXT_H_ | 85 #endif // MOJO_SHELL_STANDALONE_CONTEXT_H_ |
OLD | NEW |