Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(156)

Side by Side Diff: ipc/ipc_channel_posix.cc

Issue 5685007: Rename all methods accessing Singleton<T> as GetInstance(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 10 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome_frame/test/simple_resource_loader_test.cc ('k') | ipc/ipc_channel_proxy.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « chrome_frame/test/simple_resource_loader_test.cc ('k') | ipc/ipc_channel_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698