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

Side by Side Diff: ash/mus/window_manager_application.cc

Issue 2850743004: Replace ServiceInfo with BindSourceInfo. (Closed)
Patch Set: . 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
« no previous file with comments | « ash/mus/window_manager_application.h ('k') | ash/touch_hud/mus/touch_hud_application.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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 "ash/mus/window_manager_application.h" 5 #include "ash/mus/window_manager_application.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "ash/mojo_interface_factory.h" 9 #include "ash/mojo_interface_factory.h"
10 #include "ash/mus/network_connect_delegate_mus.h" 10 #include "ash/mus/network_connect_delegate_mus.h"
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 const size_t kMaxNumberThreads = 3u; // Matches that of content. 150 const size_t kMaxNumberThreads = 3u; // Matches that of content.
151 const char kThreadNamePrefix[] = "MashBlocking"; 151 const char kThreadNamePrefix[] = "MashBlocking";
152 blocking_pool_ = new base::SequencedWorkerPool( 152 blocking_pool_ = new base::SequencedWorkerPool(
153 kMaxNumberThreads, kThreadNamePrefix, base::TaskPriority::USER_VISIBLE); 153 kMaxNumberThreads, kThreadNamePrefix, base::TaskPriority::USER_VISIBLE);
154 const bool init_network_handler = true; 154 const bool init_network_handler = true;
155 InitWindowManager(std::move(window_tree_client), blocking_pool_, 155 InitWindowManager(std::move(window_tree_client), blocking_pool_,
156 init_network_handler); 156 init_network_handler);
157 } 157 }
158 158
159 void WindowManagerApplication::OnBindInterface( 159 void WindowManagerApplication::OnBindInterface(
160 const service_manager::ServiceInfo& source_info, 160 const service_manager::BindSourceInfo& source_info,
161 const std::string& interface_name, 161 const std::string& interface_name,
162 mojo::ScopedMessagePipeHandle interface_pipe) { 162 mojo::ScopedMessagePipeHandle interface_pipe) {
163 registry_.BindInterface(source_info.identity, interface_name, 163 registry_.BindInterface(source_info.identity, interface_name,
164 std::move(interface_pipe)); 164 std::move(interface_pipe));
165 } 165 }
166 166
167 } // namespace mus 167 } // namespace mus
168 } // namespace ash 168 } // namespace ash
OLDNEW
« no previous file with comments | « ash/mus/window_manager_application.h ('k') | ash/touch_hud/mus/touch_hud_application.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698