| OLD | NEW | 
|---|
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_posix.h" | 5 #include "ipc/ipc_channel_posix.h" | 
| 6 | 6 | 
| 7 #include <errno.h> | 7 #include <errno.h> | 
| 8 #include <fcntl.h> | 8 #include <fcntl.h> | 
| 9 #include <stddef.h> | 9 #include <stddef.h> | 
| 10 #include <sys/types.h> | 10 #include <sys/types.h> | 
| (...skipping 921 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 932   } | 932   } | 
| 933   return true; | 933   return true; | 
| 934 } | 934 } | 
| 935 | 935 | 
| 936 bool Channel::ChannelImpl::Send(Message* message) { | 936 bool Channel::ChannelImpl::Send(Message* message) { | 
| 937   DVLOG(2) << "sending message @" << message << " on channel @" << this | 937   DVLOG(2) << "sending message @" << message << " on channel @" << this | 
| 938            << " with type " << message->type() | 938            << " with type " << message->type() | 
| 939            << " (" << output_queue_.size() << " in queue)"; | 939            << " (" << output_queue_.size() << " in queue)"; | 
| 940 | 940 | 
| 941 #ifdef IPC_MESSAGE_LOG_ENABLED | 941 #ifdef IPC_MESSAGE_LOG_ENABLED | 
| 942   Logging::current()->OnSendMessage(message, ""); | 942   Logging::GetInstance()->OnSendMessage(message, ""); | 
| 943 #endif | 943 #endif | 
| 944 | 944 | 
| 945   output_queue_.push(message); | 945   output_queue_.push(message); | 
| 946   if (!waiting_connect_) { | 946   if (!waiting_connect_) { | 
| 947     if (!is_blocked_on_write_) { | 947     if (!is_blocked_on_write_) { | 
| 948       if (!ProcessOutgoingMessages()) | 948       if (!ProcessOutgoingMessages()) | 
| 949         return false; | 949         return false; | 
| 950     } | 950     } | 
| 951   } | 951   } | 
| 952 | 952 | 
| (...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 1096 | 1096 | 
| 1097 bool Channel::Send(Message* message) { | 1097 bool Channel::Send(Message* message) { | 
| 1098   return channel_impl_->Send(message); | 1098   return channel_impl_->Send(message); | 
| 1099 } | 1099 } | 
| 1100 | 1100 | 
| 1101 int Channel::GetClientFileDescriptor() const { | 1101 int Channel::GetClientFileDescriptor() const { | 
| 1102   return channel_impl_->GetClientFileDescriptor(); | 1102   return channel_impl_->GetClientFileDescriptor(); | 
| 1103 } | 1103 } | 
| 1104 | 1104 | 
| 1105 }  // namespace IPC | 1105 }  // namespace IPC | 
| OLD | NEW | 
|---|