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

Side by Side Diff: mojo/edk/system/channel_win.cc

Issue 2738853002: Connections now take a ConnectionParams instead of a pipe handle. (Closed)
Patch Set: Fix Win compile Created 3 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 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
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 ConnectionParam connection_param,
353 ScopedPlatformHandle platform_handle, 354 ScopedPlatformHandle platform_handle,
Ken Rockot(use gerrit already) 2017/03/09 18:00:43 Gotta remove this line
Jay Civelli 2017/03/09 19:09:53 Done.
354 scoped_refptr<base::TaskRunner> io_task_runner) { 355 scoped_refptr<base::TaskRunner> io_task_runner) {
355 return new ChannelWin(delegate, std::move(platform_handle), io_task_runner); 356 return new ChannelWin(delegate, connection_param.TakeChannelHandle(),
357 io_task_runner);
356 } 358 }
357 359
358 } // namespace edk 360 } // namespace edk
359 } // namespace mojo 361 } // namespace mojo
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698