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

Side by Side Diff: net/base/net_log_util.h

Issue 1556018: Add support for attaching custom parameters to NetLog events. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Address willchan's comments Created 10 years, 8 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 | « net/base/net_log_unittest.h ('k') | net/base/net_log_util.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) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 #ifndef NET_BASE_NET_LOG_UTIL_H_ 5 #ifndef NET_BASE_NET_LOG_UTIL_H_
6 #define NET_BASE_NET_LOG_UTIL_H_ 6 #define NET_BASE_NET_LOG_UTIL_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 // 57 //
58 // In general the rules are: 58 // In general the rules are:
59 // - Log entries added by BeginEvent() are prefixed with a '+' and 59 // - Log entries added by BeginEvent() are prefixed with a '+' and
60 // start an indentation block. 60 // start an indentation block.
61 // - Log entries added by EndEvent() are prefixed with a '-' and 61 // - Log entries added by EndEvent() are prefixed with a '-' and
62 // finish an indentation block. 62 // finish an indentation block.
63 // - Log entries added by AddEvent() have no prefix. 63 // - Log entries added by AddEvent() have no prefix.
64 // - Time units are given as milliseconds. 64 // - Time units are given as milliseconds.
65 // 65 //
66 static std::string PrettyPrintAsEventTree( 66 static std::string PrettyPrintAsEventTree(
67 const std::vector<NetLog::Entry>& entries, size_t num_entries_truncated); 67 const std::vector<CapturingNetLog::Entry>& entries,
68 size_t num_entries_truncated);
68 69
69 private: 70 private:
70 DISALLOW_IMPLICIT_CONSTRUCTORS(NetLogUtil); 71 DISALLOW_IMPLICIT_CONSTRUCTORS(NetLogUtil);
71 }; 72 };
72 73
73 } // namespace net 74 } // namespace net
74 75
75 #endif // NET_BASE_NET_LOG_UTIL_H_ 76 #endif // NET_BASE_NET_LOG_UTIL_H_
OLDNEW
« no previous file with comments | « net/base/net_log_unittest.h ('k') | net/base/net_log_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698