| Index: net/base/load_log.h
|
| ===================================================================
|
| --- net/base/load_log.h (revision 35554)
|
| +++ net/base/load_log.h (working copy)
|
| @@ -142,6 +142,15 @@
|
| log->Add(Entry(base::TimeTicks::Now(), string));
|
| }
|
|
|
| + static void AddErrorCode(LoadLog* log, int error) {
|
| + if (log)
|
| + log->Add(Entry(base::TimeTicks::Now(), error));
|
| + }
|
| +
|
| + static bool IsUnbounded(const LoadLog* log) {
|
| + return log && log->is_unbounded();
|
| + }
|
| +
|
| // --------------------------------------------------------------------------
|
|
|
| // Returns the list of all entries in the log.
|
| @@ -160,6 +169,10 @@
|
| return max_num_entries_;
|
| }
|
|
|
| + bool is_unbounded() const {
|
| + return max_num_entries_ == kUnbounded;
|
| + }
|
| +
|
| // Returns a C-String symbolic name for |event|.
|
| static const char* EventTypeToString(EventType event_type);
|
|
|
|
|