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/ui/service.h

Issue 2179023004: Make Service own ServiceContext. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 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
« no previous file with comments | « services/ui/demo/mus_demo.cc ('k') | services/ui/service.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 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 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 92
93 // Returns the user specific state for the user id of |remote_identity|. 93 // Returns the user specific state for the user id of |remote_identity|.
94 // Service owns the return value. 94 // Service owns the return value.
95 // TODO(sky): if we allow removal of user ids then we need to close anything 95 // TODO(sky): if we allow removal of user ids then we need to close anything
96 // associated with the user (all incoming pipes...) on removal. 96 // associated with the user (all incoming pipes...) on removal.
97 UserState* GetUserState(const shell::Identity& remote_identity); 97 UserState* GetUserState(const shell::Identity& remote_identity);
98 98
99 void AddUserIfNecessary(const shell::Identity& remote_identity); 99 void AddUserIfNecessary(const shell::Identity& remote_identity);
100 100
101 // shell::Service: 101 // shell::Service:
102 void OnStart(shell::Connector* connector, 102 void OnStart(const shell::Identity& identity) override;
103 const shell::Identity& identity,
104 uint32_t id) override;
105 bool OnConnect(shell::Connection* connection) override; 103 bool OnConnect(shell::Connection* connection) override;
106 104
107 // WindowServerDelegate: 105 // WindowServerDelegate:
108 void OnFirstDisplayReady() override; 106 void OnFirstDisplayReady() override;
109 void OnNoMoreDisplays() override; 107 void OnNoMoreDisplays() override;
110 bool IsTestConfig() const override; 108 bool IsTestConfig() const override;
111 void CreateDefaultDisplays() override; 109 void CreateDefaultDisplays() override;
112 110
113 // shell::InterfaceFactory<mojom::AccessibilityManager> implementation. 111 // shell::InterfaceFactory<mojom::AccessibilityManager> implementation.
114 void Create(const shell::Identity& remote_identity, 112 void Create(const shell::Identity& remote_identity,
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
183 std::unique_ptr<ws::TouchController> touch_controller_; 181 std::unique_ptr<ws::TouchController> touch_controller_;
184 182
185 base::WeakPtrFactory<Service> weak_ptr_factory_; 183 base::WeakPtrFactory<Service> weak_ptr_factory_;
186 184
187 DISALLOW_COPY_AND_ASSIGN(Service); 185 DISALLOW_COPY_AND_ASSIGN(Service);
188 }; 186 };
189 187
190 } // namespace ui 188 } // namespace ui
191 189
192 #endif // SERVICES_UI_SERVICE_H_ 190 #endif // SERVICES_UI_SERVICE_H_
OLDNEW
« no previous file with comments | « services/ui/demo/mus_demo.cc ('k') | services/ui/service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698