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

Side by Side Diff: chrome/common/ipc_channel_posix.cc

Issue 79020: linux (and some posix): multiprocess plugins compiling. (Closed)
Patch Set: rebased Created 11 years, 8 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
« no previous file with comments | « chrome/common/ipc_channel_posix.h ('k') | chrome/common/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) 2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2008 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 "chrome/common/ipc_channel_posix.h" 5 #include "chrome/common/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 640 matching lines...) Expand 10 before | Expand all | Expand 10 after
651 if (!is_blocked_on_write_) { 651 if (!is_blocked_on_write_) {
652 if (!ProcessOutgoingMessages()) 652 if (!ProcessOutgoingMessages())
653 return false; 653 return false;
654 } 654 }
655 } 655 }
656 656
657 return true; 657 return true;
658 } 658 }
659 659
660 void Channel::ChannelImpl::GetClientFileDescriptorMapping(int *src_fd, 660 void Channel::ChannelImpl::GetClientFileDescriptorMapping(int *src_fd,
661 int *dest_fd) { 661 int *dest_fd) const {
662 DCHECK(mode_ == MODE_SERVER); 662 DCHECK(mode_ == MODE_SERVER);
663 *src_fd = client_pipe_; 663 *src_fd = client_pipe_;
664 *dest_fd = kClientChannelFd; 664 *dest_fd = kClientChannelFd;
665 } 665 }
666 666
667 void Channel::ChannelImpl::OnClientConnected() { 667 void Channel::ChannelImpl::OnClientConnected() {
668 // WARNING: this isn't actually called when a client connects. 668 // WARNING: this isn't actually called when a client connects.
669 DCHECK(mode_ == MODE_SERVER); 669 DCHECK(mode_ == MODE_SERVER);
670 } 670 }
671 671
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
785 } 785 }
786 786
787 void Channel::set_listener(Listener* listener) { 787 void Channel::set_listener(Listener* listener) {
788 channel_impl_->set_listener(listener); 788 channel_impl_->set_listener(listener);
789 } 789 }
790 790
791 bool Channel::Send(Message* message) { 791 bool Channel::Send(Message* message) {
792 return channel_impl_->Send(message); 792 return channel_impl_->Send(message);
793 } 793 }
794 794
795 void Channel::GetClientFileDescriptorMapping(int *src_fd, int *dest_fd) { 795 void Channel::GetClientFileDescriptorMapping(int *src_fd, int *dest_fd) const {
796 return channel_impl_->GetClientFileDescriptorMapping(src_fd, dest_fd); 796 return channel_impl_->GetClientFileDescriptorMapping(src_fd, dest_fd);
797 } 797 }
798 798
799 void Channel::OnClientConnected() { 799 void Channel::OnClientConnected() {
800 return channel_impl_->OnClientConnected(); 800 return channel_impl_->OnClientConnected();
801 } 801 }
802 802
803 803
804 } // namespace IPC 804 } // namespace IPC
OLDNEW
« no previous file with comments | « chrome/common/ipc_channel_posix.h ('k') | chrome/common/ipc_channel_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698