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

Side by Side Diff: services/service_manager/standalone/context.h

Issue 2525073002: Initialize TaskScheduler in Mash. (Closed)
Patch Set: shared constant for max num threads Created 4 years 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 | « chrome/app/mash/mash_runner.cc ('k') | services/service_manager/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 SERVICES_SERVICE_MANAGER_STANDALONE_CONTEXT_H_ 5 #ifndef SERVICES_SERVICE_MANAGER_STANDALONE_CONTEXT_H_
6 #define SERVICES_SERVICE_MANAGER_STANDALONE_CONTEXT_H_ 6 #define SERVICES_SERVICE_MANAGER_STANDALONE_CONTEXT_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/callback_forward.h" 10 #include "base/callback_forward.h"
11 #include "base/macros.h" 11 #include "base/macros.h"
12 #include "base/memory/ref_counted.h" 12 #include "base/memory/ref_counted.h"
13 #include "base/threading/thread.h" 13 #include "base/threading/thread.h"
14 #include "base/time/time.h" 14 #include "base/time/time.h"
15 #include "mojo/edk/embedder/process_delegate.h" 15 #include "mojo/edk/embedder/process_delegate.h"
16 #include "services/service_manager/service_manager.h" 16 #include "services/service_manager/service_manager.h"
17 #include "services/service_manager/standalone/tracer.h" 17 #include "services/service_manager/standalone/tracer.h"
18 #include "services/tracing/public/cpp/provider.h" 18 #include "services/tracing/public/cpp/provider.h"
19 19
20 namespace base { 20 namespace base {
21 class SingleThreadTaskRunner; 21 class SingleThreadTaskRunner;
22 } 22 }
23 23
24 namespace catalog { 24 namespace catalog {
25 class Catalog; 25 class Catalog;
26 class Store; 26 class Store;
27 } 27 }
28 28
29 namespace service_manager { 29 namespace service_manager {
30
31 constexpr size_t kThreadPoolMaxThreads = 3;
32
30 class NativeRunnerDelegate; 33 class NativeRunnerDelegate;
31 34
32 // The "global" context for the service manager's main process. 35 // The "global" context for the service manager's main process.
33 class Context : public mojo::edk::ProcessDelegate { 36 class Context : public mojo::edk::ProcessDelegate {
34 public: 37 public:
35 struct InitParams { 38 struct InitParams {
36 InitParams(); 39 InitParams();
37 ~InitParams(); 40 ~InitParams();
38 41
39 NativeRunnerDelegate* native_runner_delegate = nullptr; 42 NativeRunnerDelegate* native_runner_delegate = nullptr;
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 std::unique_ptr<ServiceManager> service_manager_; 81 std::unique_ptr<ServiceManager> service_manager_;
79 base::Time main_entry_time_; 82 base::Time main_entry_time_;
80 bool init_edk_ = false; 83 bool init_edk_ = false;
81 84
82 DISALLOW_COPY_AND_ASSIGN(Context); 85 DISALLOW_COPY_AND_ASSIGN(Context);
83 }; 86 };
84 87
85 } // namespace service_manager 88 } // namespace service_manager
86 89
87 #endif // SERVICES_SERVICE_MANAGER_STANDALONE_CONTEXT_H_ 90 #endif // SERVICES_SERVICE_MANAGER_STANDALONE_CONTEXT_H_
OLDNEW
« no previous file with comments | « chrome/app/mash/mash_runner.cc ('k') | services/service_manager/standalone/context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698