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

Side by Side Diff: ipc/ipc_channel_win.cc

Issue 6349029: Get service processes working on Mac and Linux. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix up small typo in comment Created 9 years, 10 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_proxy.cc ('k') | no next file » | 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_win.h" 5 #include "ipc/ipc_channel_win.h"
6 6
7 #include <windows.h> 7 #include <windows.h>
8 #include <sddl.h> 8 #include <sddl.h>
9 #include <sstream> 9 #include <sstream>
10 10
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 } 96 }
97 97
98 //------------------------------------------------------------------------------ 98 //------------------------------------------------------------------------------
99 99
100 Channel::ChannelImpl::ChannelImpl(const IPC::ChannelHandle &channel_handle, 100 Channel::ChannelImpl::ChannelImpl(const IPC::ChannelHandle &channel_handle,
101 Mode mode, Listener* listener) 101 Mode mode, Listener* listener)
102 : ALLOW_THIS_IN_INITIALIZER_LIST(input_state_(this)), 102 : ALLOW_THIS_IN_INITIALIZER_LIST(input_state_(this)),
103 ALLOW_THIS_IN_INITIALIZER_LIST(output_state_(this)), 103 ALLOW_THIS_IN_INITIALIZER_LIST(output_state_(this)),
104 pipe_(INVALID_HANDLE_VALUE), 104 pipe_(INVALID_HANDLE_VALUE),
105 listener_(listener), 105 listener_(listener),
106 waiting_connect_(mode == MODE_SERVER), 106 waiting_connect_(mode == MODE_SERVER || mode == MODE_NAMED_SERVER),
107 processing_incoming_(false), 107 processing_incoming_(false),
108 ALLOW_THIS_IN_INITIALIZER_LIST(factory_(this)) { 108 ALLOW_THIS_IN_INITIALIZER_LIST(factory_(this)) {
109 switch(mode) { 109 switch(mode) {
110 case MODE_NONE: 110 case MODE_NONE:
111 LOG(FATAL) << "Bad mode for " << channel_handle.name; 111 LOG(FATAL) << "Bad mode for " << channel_handle.name;
112 break; 112 break;
113 case MODE_SERVER: 113 case MODE_SERVER:
114 case MODE_CLIENT: 114 case MODE_CLIENT:
115 break; 115 break;
116 case MODE_NAMED_SERVER: 116 case MODE_NAMED_SERVER:
(...skipping 388 matching lines...) Expand 10 before | Expand all | Expand 10 after
505 505
506 void Channel::set_listener(Listener* listener) { 506 void Channel::set_listener(Listener* listener) {
507 channel_impl_->set_listener(listener); 507 channel_impl_->set_listener(listener);
508 } 508 }
509 509
510 bool Channel::Send(Message* message) { 510 bool Channel::Send(Message* message) {
511 return channel_impl_->Send(message); 511 return channel_impl_->Send(message);
512 } 512 }
513 513
514 } // namespace IPC 514 } // namespace IPC
OLDNEW
« no previous file with comments | « ipc/ipc_channel_proxy.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698