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

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

Issue 368001: Second patch in making destructors of refcounted objects private. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 1 month 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
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_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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698