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

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

Issue 20156: POSIX: basic IPC logging (Closed)
Patch Set: Merge jrg's xcode changes Created 11 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
« no previous file with comments | « chrome/common/common.scons ('k') | chrome/common/ipc_logging.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 "base/message_loop.h" 5 #include "base/message_loop.h"
6 #include "base/thread.h" 6 #include "base/thread.h"
7 #include "chrome/common/ipc_channel_proxy.h" 7 #include "chrome/common/ipc_channel_proxy.h"
8 #if defined(OS_WIN)
9 // TODO(playmobil): remove ifdef once ObjectWatcher is ported
10 #include "chrome/common/ipc_logging.h" 8 #include "chrome/common/ipc_logging.h"
11 #endif
12 #include "chrome/common/ipc_message_utils.h" 9 #include "chrome/common/ipc_message_utils.h"
13 10
14 namespace IPC { 11 namespace IPC {
15 12
16 #if defined(OS_POSIX)
17 // TODO(playmobil): remove once ObjectWatcher is ported
18 #undef IPC_MESSAGE_LOG_ENABLED
19 #endif
20
21 //----------------------------------------------------------------------------- 13 //-----------------------------------------------------------------------------
22 14
23 ChannelProxy::Context::Context(Channel::Listener* listener, 15 ChannelProxy::Context::Context(Channel::Listener* listener,
24 MessageFilter* filter, 16 MessageFilter* filter,
25 MessageLoop* ipc_message_loop) 17 MessageLoop* ipc_message_loop)
26 : listener_message_loop_(MessageLoop::current()), 18 : listener_message_loop_(MessageLoop::current()),
27 listener_(listener), 19 listener_(listener),
28 ipc_message_loop_(ipc_message_loop), 20 ipc_message_loop_(ipc_message_loop),
29 channel_(NULL) { 21 channel_(NULL) {
30 if (filter) 22 if (filter)
(...skipping 265 matching lines...) Expand 10 before | Expand all | Expand 10 after
296 Channel *channel = context_.get()->channel_; 288 Channel *channel = context_.get()->channel_;
297 DCHECK(channel); // Channel must have been created first. 289 DCHECK(channel); // Channel must have been created first.
298 channel->OnClientConnected(); 290 channel->OnClientConnected();
299 } 291 }
300 #endif 292 #endif
301 293
302 //----------------------------------------------------------------------------- 294 //-----------------------------------------------------------------------------
303 295
304 } // namespace IPC 296 } // namespace IPC
305 297
OLDNEW
« no previous file with comments | « chrome/common/common.scons ('k') | chrome/common/ipc_logging.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698