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

Side by Side Diff: components/mus/mus_app.cc

Issue 1801963002: Change primordial pipes to ShellClient (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase onto catalog CL 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 | « components/mus/mus_app.h ('k') | components/resource_provider/resource_provider_app.h » ('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 #include "components/mus/mus_app.h" 5 #include "components/mus/mus_app.h"
6 6
7 #include <set> 7 #include <set>
8 8
9 #include "base/memory/weak_ptr.h" 9 #include "base/memory/weak_ptr.h"
10 #include "base/stl_util.h" 10 #include "base/stl_util.h"
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 bool MandolineUIServicesApp::AcceptConnection(Connection* connection) { 161 bool MandolineUIServicesApp::AcceptConnection(Connection* connection) {
162 connection->AddInterface<Gpu>(this); 162 connection->AddInterface<Gpu>(this);
163 connection->AddInterface<mojom::DisplayManager>(this); 163 connection->AddInterface<mojom::DisplayManager>(this);
164 connection->AddInterface<mojom::UserAccessManager>(this); 164 connection->AddInterface<mojom::UserAccessManager>(this);
165 connection->AddInterface<WindowTreeHostFactory>(this); 165 connection->AddInterface<WindowTreeHostFactory>(this);
166 connection->AddInterface<mojom::WindowManagerFactoryService>(this); 166 connection->AddInterface<mojom::WindowManagerFactoryService>(this);
167 connection->AddInterface<mojom::WindowTreeFactory>(this); 167 connection->AddInterface<mojom::WindowTreeFactory>(this);
168 return true; 168 return true;
169 } 169 }
170 170
171 void MandolineUIServicesApp::ShellConnectionLost() {
172 // TODO: This should exit cleanly.
173 _exit(1);
174 }
175
171 void MandolineUIServicesApp::OnFirstDisplayReady() { 176 void MandolineUIServicesApp::OnFirstDisplayReady() {
172 PendingRequests requests; 177 PendingRequests requests;
173 requests.swap(pending_requests_); 178 requests.swap(pending_requests_);
174 for (auto& request : requests) 179 for (auto& request : requests)
175 Create(request->connection, std::move(*request->wtf_request)); 180 Create(request->connection, std::move(*request->wtf_request));
176 } 181 }
177 182
178 void MandolineUIServicesApp::OnNoMoreDisplays() { 183 void MandolineUIServicesApp::OnNoMoreDisplays() {
179 base::MessageLoop::current()->QuitWhenIdle(); 184 base::MessageLoop::current()->QuitWhenIdle();
180 } 185 }
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
249 user_state->window_tree_host_factory->AddBinding(std::move(request)); 254 user_state->window_tree_host_factory->AddBinding(std::move(request));
250 } 255 }
251 256
252 void MandolineUIServicesApp::Create(mojo::Connection* connection, 257 void MandolineUIServicesApp::Create(mojo::Connection* connection,
253 mojom::GpuRequest request) { 258 mojom::GpuRequest request) {
254 DCHECK(platform_display_init_params_.gpu_state); 259 DCHECK(platform_display_init_params_.gpu_state);
255 new GpuImpl(std::move(request), platform_display_init_params_.gpu_state); 260 new GpuImpl(std::move(request), platform_display_init_params_.gpu_state);
256 } 261 }
257 262
258 } // namespace mus 263 } // namespace mus
OLDNEW
« no previous file with comments | « components/mus/mus_app.h ('k') | components/resource_provider/resource_provider_app.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698