| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "base/macros.h" | 5 #include "base/macros.h" |
| 6 #include "base/memory/ptr_util.h" | 6 #include "base/memory/ptr_util.h" |
| 7 #include "ipc/ipc_channel_factory.h" | 7 #include "ipc/ipc_channel_factory.h" |
| 8 #include "ipc/ipc_channel_mojo.h" | 8 #include "ipc/ipc_channel_mojo.h" |
| 9 | 9 |
| 10 namespace IPC { | 10 namespace IPC { |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 DISALLOW_COPY_AND_ASSIGN(PlatformChannelFactory); | 44 DISALLOW_COPY_AND_ASSIGN(PlatformChannelFactory); |
| 45 }; | 45 }; |
| 46 | 46 |
| 47 } // namespace | 47 } // namespace |
| 48 | 48 |
| 49 // static | 49 // static |
| 50 std::unique_ptr<ChannelFactory> ChannelFactory::Create( | 50 std::unique_ptr<ChannelFactory> ChannelFactory::Create( |
| 51 const ChannelHandle& handle, | 51 const ChannelHandle& handle, |
| 52 Channel::Mode mode, | 52 Channel::Mode mode, |
| 53 const scoped_refptr<base::SingleThreadTaskRunner>& ipc_task_runner) { | 53 const scoped_refptr<base::SingleThreadTaskRunner>& ipc_task_runner) { |
| 54 return base::WrapUnique( | 54 return base::MakeUnique<PlatformChannelFactory>(handle, mode, |
| 55 new PlatformChannelFactory(handle, mode, ipc_task_runner)); | 55 ipc_task_runner); |
| 56 } | 56 } |
| 57 | 57 |
| 58 } // namespace IPC | 58 } // namespace IPC |
| OLD | NEW |