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

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

Issue 1806353003: Adds option to run browser tests in mash (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: format Created 4 years, 9 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
« no previous file with comments | « mojo/shell/background/tests/test_catalog_store.cc ('k') | mojo/shell/standalone/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_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
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
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_
OLDNEW
« no previous file with comments | « mojo/shell/background/tests/test_catalog_store.cc ('k') | mojo/shell/standalone/context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698