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

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

Issue 2039713004: [mojo-edk] Make the Mojo EDK compile under NaCl. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix windows build. Created 4 years, 6 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 <errno.h> 7 #include <errno.h>
8 #include <sys/socket.h>
9 #if !defined(OS_NACL)
8 #include <sys/uio.h> 10 #include <sys/uio.h>
11 #endif
9 12
10 #include <algorithm> 13 #include <algorithm>
11 #include <deque> 14 #include <deque>
12 #include <limits> 15 #include <limits>
13 #include <memory> 16 #include <memory>
14 17
15 #include "base/bind.h" 18 #include "base/bind.h"
16 #include "base/location.h" 19 #include "base/location.h"
17 #include "base/macros.h" 20 #include "base/macros.h"
18 #include "base/memory/ref_counted.h" 21 #include "base/memory/ref_counted.h"
(...skipping 479 matching lines...) Expand 10 before | Expand all | Expand 10 after
498 // static 501 // static
499 scoped_refptr<Channel> Channel::Create( 502 scoped_refptr<Channel> Channel::Create(
500 Delegate* delegate, 503 Delegate* delegate,
501 ScopedPlatformHandle platform_handle, 504 ScopedPlatformHandle platform_handle,
502 scoped_refptr<base::TaskRunner> io_task_runner) { 505 scoped_refptr<base::TaskRunner> io_task_runner) {
503 return new ChannelPosix(delegate, std::move(platform_handle), io_task_runner); 506 return new ChannelPosix(delegate, std::move(platform_handle), io_task_runner);
504 } 507 }
505 508
506 } // namespace edk 509 } // namespace edk
507 } // namespace mojo 510 } // namespace mojo
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698