| 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 "ipc/ipc_channel.h" | 5 #include "ipc/ipc_channel.h" |
| 6 | 6 |
| 7 namespace IPC { | 7 namespace IPC { |
| 8 | 8 |
| 9 static Channel::MessageVerifier g_message_verifier = nullptr; | |
| 10 | |
| 11 // static | 9 // static |
| 12 scoped_ptr<Channel> Channel::CreateClient( | 10 scoped_ptr<Channel> Channel::CreateClient( |
| 13 const IPC::ChannelHandle& channel_handle, | 11 const IPC::ChannelHandle& channel_handle, |
| 14 Listener* listener, | 12 Listener* listener, |
| 15 AttachmentBroker* broker) { | 13 AttachmentBroker* broker) { |
| 16 return Channel::Create(channel_handle, Channel::MODE_CLIENT, listener, | 14 return Channel::Create(channel_handle, Channel::MODE_CLIENT, listener, |
| 17 broker); | 15 broker); |
| 18 } | 16 } |
| 19 | 17 |
| 20 // static | 18 // static |
| (...skipping 30 matching lines...) Expand all Loading... |
| 51 const IPC::ChannelHandle& channel_handle, | 49 const IPC::ChannelHandle& channel_handle, |
| 52 Listener* listener, | 50 Listener* listener, |
| 53 AttachmentBroker* broker) { | 51 AttachmentBroker* broker) { |
| 54 return Channel::Create(channel_handle, Channel::MODE_SERVER, listener, | 52 return Channel::Create(channel_handle, Channel::MODE_SERVER, listener, |
| 55 broker); | 53 broker); |
| 56 } | 54 } |
| 57 | 55 |
| 58 Channel::~Channel() { | 56 Channel::~Channel() { |
| 59 } | 57 } |
| 60 | 58 |
| 61 // static | |
| 62 void Channel::SetMessageVerifier(MessageVerifier verifier) { | |
| 63 g_message_verifier = verifier; | |
| 64 } | |
| 65 | |
| 66 // static | |
| 67 Channel::MessageVerifier Channel::GetMessageVerifier() { | |
| 68 return g_message_verifier; | |
| 69 } | |
| 70 | |
| 71 bool Channel::IsSendThreadSafe() const { | 59 bool Channel::IsSendThreadSafe() const { |
| 72 return false; | 60 return false; |
| 73 } | 61 } |
| 74 | 62 |
| 75 } // namespace IPC | 63 } // namespace IPC |
| 76 | 64 |
| OLD | NEW |