OLD | NEW |
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 Loading... |
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 |
OLD | NEW |