OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 "mojo/edk/system/channel.h" | 5 #include "mojo/edk/system/channel.h" |
6 | 6 |
7 #include <stdint.h> | 7 #include <stdint.h> |
8 #include <windows.h> | 8 #include <windows.h> |
9 | 9 |
10 #include <algorithm> | 10 #include <algorithm> |
(...skipping 332 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
343 bool leak_handle_ = false; | 343 bool leak_handle_ = false; |
344 | 344 |
345 DISALLOW_COPY_AND_ASSIGN(ChannelWin); | 345 DISALLOW_COPY_AND_ASSIGN(ChannelWin); |
346 }; | 346 }; |
347 | 347 |
348 } // namespace | 348 } // namespace |
349 | 349 |
350 // static | 350 // static |
351 scoped_refptr<Channel> Channel::Create( | 351 scoped_refptr<Channel> Channel::Create( |
352 Delegate* delegate, | 352 Delegate* delegate, |
353 ScopedPlatformHandle platform_handle, | 353 ConnectionParams connection_params, |
354 scoped_refptr<base::TaskRunner> io_task_runner) { | 354 scoped_refptr<base::TaskRunner> io_task_runner) { |
355 return new ChannelWin(delegate, std::move(platform_handle), io_task_runner); | 355 return new ChannelWin(delegate, connection_params.TakeChannelHandle(), |
| 356 io_task_runner); |
356 } | 357 } |
357 | 358 |
358 } // namespace edk | 359 } // namespace edk |
359 } // namespace mojo | 360 } // namespace mojo |
OLD | NEW |