OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/system/raw_channel.h" | 5 #include "mojo/system/raw_channel.h" |
6 | 6 |
7 #include <errno.h> | 7 #include <errno.h> |
8 #include <sys/uio.h> | 8 #include <sys/uio.h> |
9 #include <unistd.h> | 9 #include <unistd.h> |
10 | 10 |
(...skipping 461 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
472 } | 472 } |
473 | 473 |
474 } // namespace | 474 } // namespace |
475 | 475 |
476 // ----------------------------------------------------------------------------- | 476 // ----------------------------------------------------------------------------- |
477 | 477 |
478 // Static factory method declared in raw_channel.h. | 478 // Static factory method declared in raw_channel.h. |
479 // static | 479 // static |
480 scoped_ptr<RawChannel> RawChannel::Create( | 480 scoped_ptr<RawChannel> RawChannel::Create( |
481 embedder::ScopedPlatformHandle handle) { | 481 embedder::ScopedPlatformHandle handle) { |
482 return scoped_ptr<RawChannel>(new RawChannelPosix(handle.Pass())); | 482 return make_scoped_ptr(new RawChannelPosix(handle.Pass())); |
483 } | 483 } |
484 | 484 |
485 } // namespace system | 485 } // namespace system |
486 } // namespace mojo | 486 } // namespace mojo |
OLD | NEW |