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

Side by Side Diff: ipc/ipc_message_utils.cc

Issue 7885043: Improve IPC logging for ChannelHandle and NPVariant_Param (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed minor typo Created 9 years, 3 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 | « content/common/webkit_param_traits.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_message_utils.h" 5 #include "ipc/ipc_message_utils.h"
6 6
7 #include "base/file_path.h" 7 #include "base/file_path.h"
8 #include "base/json/json_writer.h" 8 #include "base/json/json_writer.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/nullable_string16.h" 10 #include "base/nullable_string16.h"
(...skipping 434 matching lines...) Expand 10 before | Expand all | Expand 10 after
445 #if defined(OS_POSIX) 445 #if defined(OS_POSIX)
446 && ReadParam(m, iter, &r->socket) 446 && ReadParam(m, iter, &r->socket)
447 #endif 447 #endif
448 ; 448 ;
449 } 449 }
450 450
451 void ParamTraits<IPC::ChannelHandle>::Log(const param_type& p, 451 void ParamTraits<IPC::ChannelHandle>::Log(const param_type& p,
452 std::string* l) { 452 std::string* l) {
453 l->append(StringPrintf("ChannelHandle(%s", p.name.c_str())); 453 l->append(StringPrintf("ChannelHandle(%s", p.name.c_str()));
454 #if defined(OS_POSIX) 454 #if defined(OS_POSIX)
455 l->append(", ");
455 ParamTraits<base::FileDescriptor>::Log(p.socket, l); 456 ParamTraits<base::FileDescriptor>::Log(p.socket, l);
456 #endif 457 #endif
457 l->append(")"); 458 l->append(")");
458 } 459 }
459 460
460 LogData::LogData() 461 LogData::LogData()
461 : routing_id(0), 462 : routing_id(0),
462 type(0), 463 type(0),
463 sent(0), 464 sent(0),
464 receive(0), 465 receive(0),
(...skipping 23 matching lines...) Expand all
488 ReadParam(m, iter, &r->flags) && 489 ReadParam(m, iter, &r->flags) &&
489 ReadParam(m, iter, &r->sent) && 490 ReadParam(m, iter, &r->sent) &&
490 ReadParam(m, iter, &r->receive) && 491 ReadParam(m, iter, &r->receive) &&
491 ReadParam(m, iter, &r->dispatch) && 492 ReadParam(m, iter, &r->dispatch) &&
492 ReadParam(m, iter, &r->params); 493 ReadParam(m, iter, &r->params);
493 r->type = static_cast<uint16>(type); 494 r->type = static_cast<uint16>(type);
494 return result; 495 return result;
495 } 496 }
496 497
497 } // namespace IPC 498 } // namespace IPC
OLDNEW
« no previous file with comments | « content/common/webkit_param_traits.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698