| OLD | NEW |
| 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 Loading... |
| 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_ |
| OLD | NEW |