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 <windows.h> | 7 #include <windows.h> |
8 | 8 |
9 #include "base/auto_reset.h" | 9 #include "base/auto_reset.h" |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
(...skipping 555 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
566 } | 566 } |
567 | 567 |
568 } // namespace | 568 } // namespace |
569 | 569 |
570 // ----------------------------------------------------------------------------- | 570 // ----------------------------------------------------------------------------- |
571 | 571 |
572 // Static factory method declared in raw_channel.h. | 572 // Static factory method declared in raw_channel.h. |
573 // static | 573 // static |
574 scoped_ptr<RawChannel> RawChannel::Create( | 574 scoped_ptr<RawChannel> RawChannel::Create( |
575 embedder::ScopedPlatformHandle handle) { | 575 embedder::ScopedPlatformHandle handle) { |
576 return scoped_ptr<RawChannel>(new RawChannelWin(handle.Pass())); | 576 return make_scoped_ptr(new RawChannelWin(handle.Pass())); |
577 } | 577 } |
578 | 578 |
579 } // namespace system | 579 } // namespace system |
580 } // namespace mojo | 580 } // namespace mojo |
OLD | NEW |