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

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

Issue 39206: NO CODE CHANGE. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 9 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 | « chrome/common/classfactory.cc ('k') | chrome/common/ipc_message_macros.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) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-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_win.h" 5 #include "chrome/common/ipc_channel_win.h"
6 6
7 #include <windows.h> 7 #include <windows.h>
8 #include <sstream> 8 #include <sstream>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 if (!waiting_connect_) { 99 if (!waiting_connect_) {
100 if (!output_state_.is_pending) { 100 if (!output_state_.is_pending) {
101 if (!ProcessOutgoingMessages(NULL, 0)) 101 if (!ProcessOutgoingMessages(NULL, 0))
102 return false; 102 return false;
103 } 103 }
104 } 104 }
105 105
106 return true; 106 return true;
107 } 107 }
108 108
109 const std::wstring Channel::ChannelImpl::PipeName(const std::wstring& channel_id ) 109 const std::wstring Channel::ChannelImpl::PipeName(
110 const { 110 const std::wstring& channel_id) const {
111 std::wostringstream ss; 111 std::wostringstream ss;
112 // XXX(darin): get application name from somewhere else 112 // XXX(darin): get application name from somewhere else
113 ss << L"\\\\.\\pipe\\chrome." << channel_id; 113 ss << L"\\\\.\\pipe\\chrome." << channel_id;
114 return ss.str(); 114 return ss.str();
115 } 115 }
116 116
117 bool Channel::ChannelImpl::CreatePipe(const std::wstring& channel_id, 117 bool Channel::ChannelImpl::CreatePipe(const std::wstring& channel_id,
118 Mode mode) { 118 Mode mode) {
119 DCHECK(pipe_ == INVALID_HANDLE_VALUE); 119 DCHECK(pipe_ == INVALID_HANDLE_VALUE);
120 const std::wstring pipe_name = PipeName(channel_id); 120 const std::wstring pipe_name = PipeName(channel_id);
(...skipping 310 matching lines...) Expand 10 before | Expand all | Expand 10 after
431 431
432 void Channel::set_listener(Listener* listener) { 432 void Channel::set_listener(Listener* listener) {
433 channel_impl_->set_listener(listener); 433 channel_impl_->set_listener(listener);
434 } 434 }
435 435
436 bool Channel::Send(Message* message) { 436 bool Channel::Send(Message* message) {
437 return channel_impl_->Send(message); 437 return channel_impl_->Send(message);
438 } 438 }
439 439
440 } // namespace IPC 440 } // namespace IPC
OLDNEW
« no previous file with comments | « chrome/common/classfactory.cc ('k') | chrome/common/ipc_message_macros.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698