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

Side by Side Diff: ipc/ipc_channel_nacl.cc

Issue 25325002: workaround for mac kernel bug (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: minor bugfix Created 7 years, 2 months 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 | « ipc/ipc_channel_nacl.h ('k') | ipc/ipc_channel_posix.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 <sys/types.h> 9 #include <sys/types.h>
10 10
(...skipping 326 matching lines...) Expand 10 before | Expand all | Expand 10 after
337 header_fds); 337 header_fds);
338 input_fds_.clear(); 338 input_fds_.clear();
339 return true; 339 return true;
340 } 340 }
341 341
342 bool Channel::ChannelImpl::DidEmptyInputBuffers() { 342 bool Channel::ChannelImpl::DidEmptyInputBuffers() {
343 // When the input data buffer is empty, the fds should be too. 343 // When the input data buffer is empty, the fds should be too.
344 return input_fds_.empty(); 344 return input_fds_.empty();
345 } 345 }
346 346
347 void Channel::ChannelImpl::HandleHelloMessage(const Message& msg) { 347 void Channel::ChannelImpl::HandleInternalMessage(const Message& msg) {
348 // The trusted side IPC::Channel should handle the "hello" handshake; we 348 // The trusted side IPC::Channel should handle the "hello" handshake; we
349 // should not receive the "Hello" message. 349 // should not receive the "Hello" message.
350 NOTREACHED(); 350 NOTREACHED();
351 } 351 }
352 352
353 //------------------------------------------------------------------------------ 353 //------------------------------------------------------------------------------
354 // Channel's methods simply call through to ChannelImpl. 354 // Channel's methods simply call through to ChannelImpl.
355 355
356 Channel::Channel(const IPC::ChannelHandle& channel_handle, 356 Channel::Channel(const IPC::ChannelHandle& channel_handle,
357 Mode mode, 357 Mode mode,
(...skipping 17 matching lines...) Expand all
375 // This shouldn't actually get used in the untrusted side of the proxy, and we 375 // This shouldn't actually get used in the untrusted side of the proxy, and we
376 // don't have the real pid anyway. 376 // don't have the real pid anyway.
377 return -1; 377 return -1;
378 } 378 }
379 379
380 bool Channel::Send(Message* message) { 380 bool Channel::Send(Message* message) {
381 return channel_impl_->Send(message); 381 return channel_impl_->Send(message);
382 } 382 }
383 383
384 } // namespace IPC 384 } // namespace IPC
OLDNEW
« no previous file with comments | « ipc/ipc_channel_nacl.h ('k') | ipc/ipc_channel_posix.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698