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

Side by Side Diff: ipc/ipc_sync_channel.cc

Issue 2768403002: Revert of Add enable_ipc_logging build argument (Closed)
Patch Set: Created 3 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
« no previous file with comments | « ipc/ipc_message_utils.h ('k') | ppapi/nacl_irt/irt_ppapi.cc » ('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_sync_channel.h" 5 #include "ipc/ipc_sync_channel.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <utility> 10 #include <utility>
(...skipping 534 matching lines...) Expand 10 before | Expand all | Expand 10 after
545 scoped_refptr<SyncMessageFilter> SyncChannel::CreateSyncMessageFilter() { 545 scoped_refptr<SyncMessageFilter> SyncChannel::CreateSyncMessageFilter() {
546 scoped_refptr<SyncMessageFilter> filter = new SyncMessageFilter( 546 scoped_refptr<SyncMessageFilter> filter = new SyncMessageFilter(
547 sync_context()->shutdown_event()); 547 sync_context()->shutdown_event());
548 AddFilter(filter.get()); 548 AddFilter(filter.get());
549 if (!did_init()) 549 if (!did_init())
550 pre_init_sync_message_filters_.push_back(filter); 550 pre_init_sync_message_filters_.push_back(filter);
551 return filter; 551 return filter;
552 } 552 }
553 553
554 bool SyncChannel::Send(Message* message) { 554 bool SyncChannel::Send(Message* message) {
555 #if BUILDFLAG(IPC_MESSAGE_LOG_ENABLED) 555 #ifdef IPC_MESSAGE_LOG_ENABLED
556 std::string name; 556 std::string name;
557 Logging::GetInstance()->GetMessageText( 557 Logging::GetInstance()->GetMessageText(
558 message->type(), &name, message, nullptr); 558 message->type(), &name, message, nullptr);
559 TRACE_EVENT1("ipc", "SyncChannel::Send", "name", name); 559 TRACE_EVENT1("ipc", "SyncChannel::Send", "name", name);
560 #else 560 #else
561 TRACE_EVENT2("ipc", "SyncChannel::Send", 561 TRACE_EVENT2("ipc", "SyncChannel::Send",
562 "class", IPC_MESSAGE_ID_CLASS(message->type()), 562 "class", IPC_MESSAGE_ID_CLASS(message->type()),
563 "line", IPC_MESSAGE_ID_LINE(message->type())); 563 "line", IPC_MESSAGE_ID_LINE(message->type()));
564 #endif 564 #endif
565 if (!message->is_sync()) { 565 if (!message->is_sync()) {
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
695 sync_context()->GetDispatchEvent()->GetHandle(), 695 sync_context()->GetDispatchEvent()->GetHandle(),
696 MOJO_HANDLE_SIGNAL_READABLE, 696 MOJO_HANDLE_SIGNAL_READABLE,
697 base::Bind(&SyncChannel::OnDispatchHandleReady, base::Unretained(this))); 697 base::Bind(&SyncChannel::OnDispatchHandleReady, base::Unretained(this)));
698 } 698 }
699 699
700 void SyncChannel::OnChannelInit() { 700 void SyncChannel::OnChannelInit() {
701 pre_init_sync_message_filters_.clear(); 701 pre_init_sync_message_filters_.clear();
702 } 702 }
703 703
704 } // namespace IPC 704 } // namespace IPC
OLDNEW
« no previous file with comments | « ipc/ipc_message_utils.h ('k') | ppapi/nacl_irt/irt_ppapi.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698