| 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_LOAD_LOG_H_ | 5 #ifndef NET_BASE_LOAD_LOG_H_ |
| 6 #define NET_BASE_LOAD_LOG_H_ | 6 #define NET_BASE_LOAD_LOG_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/ref_counted.h" | 10 #include "base/ref_counted.h" |
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 99 void Add(const Event& event); | 99 void Add(const Event& event); |
| 100 | 100 |
| 101 void Add(base::TimeTicks t, EventType event, EventPhase phase) { | 101 void Add(base::TimeTicks t, EventType event, EventPhase phase) { |
| 102 Add(Event(t, event, phase)); | 102 Add(Event(t, event, phase)); |
| 103 } | 103 } |
| 104 | 104 |
| 105 // Copies all events from |log|, appending it to the end of |this|. | 105 // Copies all events from |log|, appending it to the end of |this|. |
| 106 void Append(const LoadLog* log); | 106 void Append(const LoadLog* log); |
| 107 | 107 |
| 108 private: | 108 private: |
| 109 friend class base::RefCountedThreadSafe<LoadLog>; |
| 110 |
| 111 ~LoadLog() {} |
| 112 |
| 109 EventList events_; | 113 EventList events_; |
| 110 }; | 114 }; |
| 111 | 115 |
| 112 } // namespace net | 116 } // namespace net |
| 113 | 117 |
| 114 #endif // NET_BASE_LOAD_LOG_H_ | 118 #endif // NET_BASE_LOAD_LOG_H_ |
| OLD | NEW |