| 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 "ipc/ipc_channel_factory.h" | 6 #include "ipc/ipc_channel_factory.h" |
| 6 | 7 |
| 7 namespace IPC { | 8 namespace IPC { |
| 8 | 9 |
| 9 namespace { | 10 namespace { |
| 10 | 11 |
| 11 class PlatformChannelFactory : public ChannelFactory { | 12 class PlatformChannelFactory : public ChannelFactory { |
| 12 public: | 13 public: |
| 13 PlatformChannelFactory(ChannelHandle handle, Channel::Mode mode) | 14 PlatformChannelFactory(ChannelHandle handle, Channel::Mode mode) |
| 14 : handle_(handle), mode_(mode) {} | 15 : handle_(handle), mode_(mode) {} |
| (...skipping 15 matching lines...) Expand all Loading... |
| 30 | 31 |
| 31 } // namespace | 32 } // namespace |
| 32 | 33 |
| 33 // static | 34 // static |
| 34 scoped_ptr<ChannelFactory> ChannelFactory::Create(const ChannelHandle& handle, | 35 scoped_ptr<ChannelFactory> ChannelFactory::Create(const ChannelHandle& handle, |
| 35 Channel::Mode mode) { | 36 Channel::Mode mode) { |
| 36 return scoped_ptr<ChannelFactory>(new PlatformChannelFactory(handle, mode)); | 37 return scoped_ptr<ChannelFactory>(new PlatformChannelFactory(handle, mode)); |
| 37 } | 38 } |
| 38 | 39 |
| 39 } // namespace IPC | 40 } // namespace IPC |
| OLD | NEW |