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

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

Issue 1801133002: Restructure login (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . 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
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 MOJO_SHELL_SHELL_H_ 5 #ifndef MOJO_SHELL_SHELL_H_
6 #define MOJO_SHELL_SHELL_H_ 6 #define MOJO_SHELL_SHELL_H_
7 7
8 #include <map> 8 #include <map>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 Loader* GetLoaderForName(const std::string& name); 171 Loader* GetLoaderForName(const std::string& name);
172 172
173 void CleanupRunner(NativeRunner* runner); 173 void CleanupRunner(NativeRunner* runner);
174 174
175 // Loader management. 175 // Loader management.
176 // Loaders are chosen in the order they are listed here. 176 // Loaders are chosen in the order they are listed here.
177 NameToLoaderMap name_to_loader_; 177 NameToLoaderMap name_to_loader_;
178 scoped_ptr<Loader> default_loader_; 178 scoped_ptr<Loader> default_loader_;
179 179
180 IdentityToInstanceMap identity_to_instance_; 180 IdentityToInstanceMap identity_to_instance_;
181 std::set<std::string> singletons_;
sky 2016/03/16 15:24:01 Add a description of this.
181 182
182 IdentityToShellClientFactoryMap shell_client_factories_; 183 IdentityToShellClientFactoryMap shell_client_factories_;
183 // Counter used to assign ids to client factories. 184 // Counter used to assign ids to client factories.
184 uint32_t shell_client_factory_id_counter_; 185 uint32_t shell_client_factory_id_counter_;
185 186
186 InterfacePtrSet<mojom::InstanceListener> instance_listeners_; 187 InterfacePtrSet<mojom::InstanceListener> instance_listeners_;
187 188
188 base::Callback<void(const Identity&)> instance_quit_callback_; 189 base::Callback<void(const Identity&)> instance_quit_callback_;
189 scoped_ptr<NativeRunnerFactory> native_runner_factory_; 190 scoped_ptr<NativeRunnerFactory> native_runner_factory_;
190 std::vector<scoped_ptr<NativeRunner>> native_runners_; 191 std::vector<scoped_ptr<NativeRunner>> native_runners_;
191 scoped_ptr<ShellConnection> shell_connection_; 192 scoped_ptr<ShellConnection> shell_connection_;
192 base::WeakPtrFactory<Shell> weak_ptr_factory_; 193 base::WeakPtrFactory<Shell> weak_ptr_factory_;
193 194
194 DISALLOW_COPY_AND_ASSIGN(Shell); 195 DISALLOW_COPY_AND_ASSIGN(Shell);
195 }; 196 };
196 197
197 mojom::Connector::ConnectCallback EmptyConnectCallback(); 198 mojom::Connector::ConnectCallback EmptyConnectCallback();
198 199
199 } // namespace shell 200 } // namespace shell
200 } // namespace mojo 201 } // namespace mojo
201 202
202 #endif // MOJO_SHELL_SHELL_H_ 203 #endif // MOJO_SHELL_SHELL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698