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

Side by Side Diff: services/ui/service.h

Issue 2858103002: Have mash_browser_tests recreate BackgroundServiceManager per test (Closed)
Patch Set: disable failing nacl tests Created 3 years, 7 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_UI_SERVICE_H_ 5 #ifndef SERVICES_UI_SERVICE_H_
6 #define SERVICES_UI_SERVICE_H_ 6 #define SERVICES_UI_SERVICE_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 FORWARDING, 80 FORWARDING,
81 }; 81 };
82 82
83 // Holds InterfaceRequests received before the first WindowTreeHost Display 83 // Holds InterfaceRequests received before the first WindowTreeHost Display
84 // has been established. 84 // has been established.
85 struct PendingRequest; 85 struct PendingRequest;
86 struct UserState; 86 struct UserState;
87 87
88 using UserIdToUserState = std::map<ws::UserId, std::unique_ptr<UserState>>; 88 using UserIdToUserState = std::map<ws::UserId, std::unique_ptr<UserState>>;
89 89
90 void InitializeResources(service_manager::Connector* connector); 90 // Attempts to initialize the resource bundle. Returns true if successful,
91 // otherwise false if resources cannot be loaded.
92 bool InitializeResources(service_manager::Connector* connector);
91 93
92 // Returns the user specific state for the user id of |remote_identity|. 94 // Returns the user specific state for the user id of |remote_identity|.
93 // Service owns the return value. 95 // Service owns the return value.
94 // TODO(sky): if we allow removal of user ids then we need to close anything 96 // TODO(sky): if we allow removal of user ids then we need to close anything
95 // associated with the user (all incoming pipes...) on removal. 97 // associated with the user (all incoming pipes...) on removal.
96 UserState* GetUserState(const service_manager::Identity& remote_identity); 98 UserState* GetUserState(const service_manager::Identity& remote_identity);
97 99
98 void AddUserIfNecessary(const service_manager::Identity& remote_identity); 100 void AddUserIfNecessary(const service_manager::Identity& remote_identity);
99 101
100 // service_manager::Service: 102 // service_manager::Service:
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
191 // Set to true in StartDisplayInit(). 193 // Set to true in StartDisplayInit().
192 bool is_gpu_ready_ = false; 194 bool is_gpu_ready_ = false;
193 ScreenManagerConfig screen_manager_config_ = ScreenManagerConfig::UNKNOWN; 195 ScreenManagerConfig screen_manager_config_ = ScreenManagerConfig::UNKNOWN;
194 196
195 DISALLOW_COPY_AND_ASSIGN(Service); 197 DISALLOW_COPY_AND_ASSIGN(Service);
196 }; 198 };
197 199
198 } // namespace ui 200 } // namespace ui
199 201
200 #endif // SERVICES_UI_SERVICE_H_ 202 #endif // SERVICES_UI_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698