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

Side by Side Diff: ipc/ipc_channel_nacl.cc

Issue 2494373002: Remove IPC channel IDs. (Closed)
Patch Set: rebase Created 4 years, 1 month 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
« no previous file with comments | « ipc/ipc_channel_mojo.cc ('k') | ipc/ipc_channel_proxy.h » ('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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_nacl.h" 5 #include "ipc/ipc_channel_nacl.h"
6 6
7 #include <errno.h> 7 #include <errno.h>
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 #include <sys/types.h> 10 #include <sys/types.h>
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after
192 output_queue_.clear(); 192 output_queue_.clear();
193 } 193 }
194 194
195 bool ChannelNacl::Send(Message* message) { 195 bool ChannelNacl::Send(Message* message) {
196 DCHECK(!message->HasAttachments()); 196 DCHECK(!message->HasAttachments());
197 DVLOG(2) << "sending message @" << message << " on channel @" << this 197 DVLOG(2) << "sending message @" << message << " on channel @" << this
198 << " with type " << message->type(); 198 << " with type " << message->type();
199 std::unique_ptr<Message> message_ptr(message); 199 std::unique_ptr<Message> message_ptr(message);
200 200
201 #ifdef IPC_MESSAGE_LOG_ENABLED 201 #ifdef IPC_MESSAGE_LOG_ENABLED
202 Logging::GetInstance()->OnSendMessage(message_ptr.get(), ""); 202 Logging::GetInstance()->OnSendMessage(message_ptr.get());
203 #endif // IPC_MESSAGE_LOG_ENABLED 203 #endif // IPC_MESSAGE_LOG_ENABLED
204 204
205 TRACE_EVENT_WITH_FLOW0(TRACE_DISABLED_BY_DEFAULT("ipc.flow"), 205 TRACE_EVENT_WITH_FLOW0(TRACE_DISABLED_BY_DEFAULT("ipc.flow"),
206 "ChannelNacl::Send", 206 "ChannelNacl::Send",
207 message->header()->flags, 207 message->header()->flags,
208 TRACE_EVENT_FLAG_FLOW_OUT); 208 TRACE_EVENT_FLAG_FLOW_OUT);
209 output_queue_.push_back(linked_ptr<Message>(message_ptr.release())); 209 output_queue_.push_back(linked_ptr<Message>(message_ptr.release()));
210 if (!waiting_connect_) 210 if (!waiting_connect_)
211 return ProcessOutgoingMessages(); 211 return ProcessOutgoingMessages();
212 212
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after
374 374
375 // static 375 // static
376 std::unique_ptr<Channel> Channel::Create( 376 std::unique_ptr<Channel> Channel::Create(
377 const IPC::ChannelHandle& channel_handle, 377 const IPC::ChannelHandle& channel_handle,
378 Mode mode, 378 Mode mode,
379 Listener* listener) { 379 Listener* listener) {
380 return base::WrapUnique(new ChannelNacl(channel_handle, mode, listener)); 380 return base::WrapUnique(new ChannelNacl(channel_handle, mode, listener));
381 } 381 }
382 382
383 } // namespace IPC 383 } // namespace IPC
OLDNEW
« no previous file with comments | « ipc/ipc_channel_mojo.cc ('k') | ipc/ipc_channel_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698