OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 CHROME_BROWSER_NET_PASSIVE_LOG_COLLECTOR_H_ | 5 #ifndef CHROME_BROWSER_NET_PASSIVE_LOG_COLLECTOR_H_ |
6 #define CHROME_BROWSER_NET_PASSIVE_LOG_COLLECTOR_H_ | 6 #define CHROME_BROWSER_NET_PASSIVE_LOG_COLLECTOR_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <deque> | 9 #include <deque> |
10 #include <string> | 10 #include <string> |
(...skipping 14 matching lines...) Expand all Loading... |
25 // problem and it will contain a trace for the problem request. | 25 // problem and it will contain a trace for the problem request. |
26 // | 26 // |
27 // (This is in contrast to the "active logging" which captures every single | 27 // (This is in contrast to the "active logging" which captures every single |
28 // network event, but requires capturing to have been enabled *prior* to | 28 // network event, but requires capturing to have been enabled *prior* to |
29 // encountering the problem. Active capturing is enabled as long as | 29 // encountering the problem. Active capturing is enabled as long as |
30 // about:net-internals is open). | 30 // about:net-internals is open). |
31 // | 31 // |
32 // The data captured by PassiveLogCollector is grouped by NetLog::Source, into | 32 // The data captured by PassiveLogCollector is grouped by NetLog::Source, into |
33 // a SourceInfo structure. These in turn are grouped by NetLog::SourceType, and | 33 // a SourceInfo structure. These in turn are grouped by NetLog::SourceType, and |
34 // owned by a SourceTracker instance for the specific source type. | 34 // owned by a SourceTracker instance for the specific source type. |
35 class PassiveLogCollector : public ChromeNetLog::Observer { | 35 // |
| 36 // The PassiveLogCollector is owned by the ChromeNetLog itself, and is not |
| 37 // thread safe. The ChromeNetLog is responsible for calling it in a thread safe |
| 38 // manner. |
| 39 class PassiveLogCollector : public ChromeNetLog::ThreadSafeObserver { |
36 public: | 40 public: |
37 // This structure encapsulates all of the parameters of a captured event, | |
38 // including an "order" field that identifies when it was captured relative | |
39 // to other events. | |
40 struct Entry { | |
41 Entry(uint32 order, | |
42 net::NetLog::EventType type, | |
43 const base::TimeTicks& time, | |
44 net::NetLog::Source source, | |
45 net::NetLog::EventPhase phase, | |
46 net::NetLog::EventParameters* params); | |
47 ~Entry(); | |
48 | |
49 uint32 order; | |
50 net::NetLog::EventType type; | |
51 base::TimeTicks time; | |
52 net::NetLog::Source source; | |
53 net::NetLog::EventPhase phase; | |
54 scoped_refptr<net::NetLog::EventParameters> params; | |
55 }; | |
56 | |
57 typedef std::vector<Entry> EntryList; | |
58 typedef std::vector<net::NetLog::Source> SourceDependencyList; | 41 typedef std::vector<net::NetLog::Source> SourceDependencyList; |
59 | 42 |
60 struct SourceInfo { | 43 struct SourceInfo { |
61 SourceInfo(); | 44 SourceInfo(); |
62 ~SourceInfo(); | 45 ~SourceInfo(); |
63 | 46 |
64 // Returns the URL that corresponds with this source. This is | 47 // Returns the URL that corresponds with this source. This is |
65 // only meaningful for certain source types (URL_REQUEST, SOCKET_STREAM). | 48 // only meaningful for certain source types (URL_REQUEST, SOCKET_STREAM). |
66 // For the rest, it will return an empty string. | 49 // For the rest, it will return an empty string. |
67 std::string GetURL() const; | 50 std::string GetURL() const; |
68 | 51 |
69 uint32 source_id; | 52 uint32 source_id; |
70 EntryList entries; | 53 ChromeNetLog::EntryList entries; |
71 size_t num_entries_truncated; | 54 size_t num_entries_truncated; |
72 | 55 |
73 // List of other sources which contain information relevant to this | 56 // List of other sources which contain information relevant to this |
74 // source (for example, a url request might depend on the log items | 57 // source (for example, a url request might depend on the log items |
75 // for a connect job and for a socket that were bound to it.) | 58 // for a connect job and for a socket that were bound to it.) |
76 SourceDependencyList dependencies; | 59 SourceDependencyList dependencies; |
77 | 60 |
78 // Holds the count of how many other sources have added this as a | 61 // Holds the count of how many other sources have added this as a |
79 // dependent source. When it is 0, it means noone has referenced it so it | 62 // dependent source. When it is 0, it means noone has referenced it so it |
80 // can be deleted normally. | 63 // can be deleted normally. |
81 int reference_count; | 64 int reference_count; |
82 | 65 |
83 // |is_alive| is set to false once the source has been added to the | 66 // |is_alive| is set to false once the source has been added to the |
84 // tracker's graveyard (it may still be kept around due to a non-zero | 67 // tracker's graveyard (it may still be kept around due to a non-zero |
85 // reference_count, but it is still considered "dead"). | 68 // reference_count, but it is still considered "dead"). |
86 bool is_alive; | 69 bool is_alive; |
87 }; | 70 }; |
88 | 71 |
89 typedef std::vector<SourceInfo> SourceInfoList; | 72 typedef std::vector<SourceInfo> SourceInfoList; |
90 | 73 |
91 // Interface for consuming a NetLog entry. | 74 // Interface for consuming a NetLog entry. |
92 class SourceTrackerInterface { | 75 class SourceTrackerInterface { |
93 public: | 76 public: |
94 virtual ~SourceTrackerInterface() {} | 77 virtual ~SourceTrackerInterface() {} |
95 | 78 |
96 virtual void OnAddEntry(const Entry& entry) = 0; | 79 virtual void OnAddEntry(const ChromeNetLog::Entry& entry) = 0; |
97 | 80 |
98 // Clears all the passively logged data from this tracker. | 81 // Clears all the passively logged data from this tracker. |
99 virtual void Clear() = 0; | 82 virtual void Clear() = 0; |
100 | 83 |
101 // Appends all the captured entries to |out|. The ordering is undefined. | 84 // Appends all the captured entries to |out|. The ordering is undefined. |
102 virtual void AppendAllEntries(EntryList* out) const = 0; | 85 virtual void AppendAllEntries(ChromeNetLog::EntryList* out) const = 0; |
103 }; | 86 }; |
104 | 87 |
105 // This source tracker is intended for TYPE_NONE. All entries go into a | 88 // This source tracker is intended for TYPE_NONE. All entries go into a |
106 // circular buffer, and there is no concept of live/dead requests. | 89 // circular buffer, and there is no concept of live/dead requests. |
107 class GlobalSourceTracker : public SourceTrackerInterface { | 90 class GlobalSourceTracker : public SourceTrackerInterface { |
108 public: | 91 public: |
109 GlobalSourceTracker(); | 92 GlobalSourceTracker(); |
110 ~GlobalSourceTracker(); | 93 ~GlobalSourceTracker(); |
111 | 94 |
112 // SourceTrackerInterface implementation: | 95 // SourceTrackerInterface implementation: |
113 virtual void OnAddEntry(const Entry& entry); | 96 virtual void OnAddEntry(const ChromeNetLog::Entry& entry); |
114 virtual void Clear(); | 97 virtual void Clear(); |
115 virtual void AppendAllEntries(EntryList* out) const; | 98 virtual void AppendAllEntries(ChromeNetLog::EntryList* out) const; |
116 | 99 |
117 private: | 100 private: |
118 typedef std::deque<Entry> CircularEntryList; | 101 typedef std::deque<ChromeNetLog::Entry> CircularEntryList; |
119 CircularEntryList entries_; | 102 CircularEntryList entries_; |
120 DISALLOW_COPY_AND_ASSIGN(GlobalSourceTracker); | 103 DISALLOW_COPY_AND_ASSIGN(GlobalSourceTracker); |
121 }; | 104 }; |
122 | 105 |
123 // This class stores and manages the passively logged information for | 106 // This class stores and manages the passively logged information for |
124 // URLRequests/SocketStreams/ConnectJobs. | 107 // URLRequests/SocketStreams/ConnectJobs. |
125 class SourceTracker : public SourceTrackerInterface { | 108 class SourceTracker : public SourceTrackerInterface { |
126 public: | 109 public: |
127 // Creates a SourceTracker that will track at most |max_num_sources|. | 110 // Creates a SourceTracker that will track at most |max_num_sources|. |
128 // Up to |max_graveyard_size| unreferenced sources will be kept around | 111 // Up to |max_graveyard_size| unreferenced sources will be kept around |
129 // before deleting them for good. |parent| may be NULL, and points to | 112 // before deleting them for good. |parent| may be NULL, and points to |
130 // the owning PassiveLogCollector (it is used when adding references | 113 // the owning PassiveLogCollector (it is used when adding references |
131 // to other sources). | 114 // to other sources). |
132 SourceTracker(size_t max_num_sources, | 115 SourceTracker(size_t max_num_sources, |
133 size_t max_graveyard_size, | 116 size_t max_graveyard_size, |
134 PassiveLogCollector* parent); | 117 PassiveLogCollector* parent); |
135 | 118 |
136 virtual ~SourceTracker(); | 119 virtual ~SourceTracker(); |
137 | 120 |
138 // SourceTrackerInterface implementation: | 121 // SourceTrackerInterface implementation: |
139 virtual void OnAddEntry(const Entry& entry); | 122 virtual void OnAddEntry(const ChromeNetLog::Entry& entry); |
140 virtual void Clear(); | 123 virtual void Clear(); |
141 virtual void AppendAllEntries(EntryList* out) const; | 124 virtual void AppendAllEntries(ChromeNetLog::EntryList* out) const; |
142 | 125 |
143 #ifdef UNIT_TEST | 126 #ifdef UNIT_TEST |
144 // Helper used to inspect the current state by unit-tests. | 127 // Helper used to inspect the current state by unit-tests. |
145 // Retuns a copy of the source infos held by the tracker. | 128 // Retuns a copy of the source infos held by the tracker. |
146 SourceInfoList GetAllDeadOrAliveSources(bool is_alive) const { | 129 SourceInfoList GetAllDeadOrAliveSources(bool is_alive) const { |
147 SourceInfoList result; | 130 SourceInfoList result; |
148 for (SourceIDToInfoMap::const_iterator it = sources_.begin(); | 131 for (SourceIDToInfoMap::const_iterator it = sources_.begin(); |
149 it != sources_.end(); ++it) { | 132 it != sources_.end(); ++it) { |
150 if (it->second.is_alive == is_alive) | 133 if (it->second.is_alive == is_alive) |
151 result.push_back(it->second); | 134 result.push_back(it->second); |
(...skipping 13 matching lines...) Expand all Loading... |
165 // kept alive at least as long as |info|. | 148 // kept alive at least as long as |info|. |
166 void AddReferenceToSourceDependency(const net::NetLog::Source& source, | 149 void AddReferenceToSourceDependency(const net::NetLog::Source& source, |
167 SourceInfo* info); | 150 SourceInfo* info); |
168 | 151 |
169 private: | 152 private: |
170 typedef base::hash_map<uint32, SourceInfo> SourceIDToInfoMap; | 153 typedef base::hash_map<uint32, SourceInfo> SourceIDToInfoMap; |
171 typedef std::deque<uint32> DeletionQueue; | 154 typedef std::deque<uint32> DeletionQueue; |
172 | 155 |
173 // Updates |out_info| with the information from |entry|. Returns an action | 156 // Updates |out_info| with the information from |entry|. Returns an action |
174 // to perform for this map entry on completion. | 157 // to perform for this map entry on completion. |
175 virtual Action DoAddEntry(const Entry& entry, SourceInfo* out_info) = 0; | 158 virtual Action DoAddEntry(const ChromeNetLog::Entry& entry, |
| 159 SourceInfo* out_info) = 0; |
176 | 160 |
177 // Removes |source_id| from |sources_|. This also releases any references | 161 // Removes |source_id| from |sources_|. This also releases any references |
178 // to dependencies held by this source. | 162 // to dependencies held by this source. |
179 void DeleteSourceInfo(uint32 source_id); | 163 void DeleteSourceInfo(uint32 source_id); |
180 | 164 |
181 // Adds |source_id| to the FIFO queue (graveyard) for deletion. | 165 // Adds |source_id| to the FIFO queue (graveyard) for deletion. |
182 void AddToDeletionQueue(uint32 source_id); | 166 void AddToDeletionQueue(uint32 source_id); |
183 | 167 |
184 // Removes |source_id| from the |deletion_queue_| container. | 168 // Removes |source_id| from the |deletion_queue_| container. |
185 void EraseFromDeletionQueue(uint32 source_id); | 169 void EraseFromDeletionQueue(uint32 source_id); |
(...skipping 24 matching lines...) Expand all Loading... |
210 | 194 |
211 // Specialization of SourceTracker for handling ConnectJobs. | 195 // Specialization of SourceTracker for handling ConnectJobs. |
212 class ConnectJobTracker : public SourceTracker { | 196 class ConnectJobTracker : public SourceTracker { |
213 public: | 197 public: |
214 static const size_t kMaxNumSources; | 198 static const size_t kMaxNumSources; |
215 static const size_t kMaxGraveyardSize; | 199 static const size_t kMaxGraveyardSize; |
216 | 200 |
217 explicit ConnectJobTracker(PassiveLogCollector* parent); | 201 explicit ConnectJobTracker(PassiveLogCollector* parent); |
218 | 202 |
219 protected: | 203 protected: |
220 virtual Action DoAddEntry(const Entry& entry, SourceInfo* out_info); | 204 virtual Action DoAddEntry(const ChromeNetLog::Entry& entry, |
| 205 SourceInfo* out_info); |
221 private: | 206 private: |
222 DISALLOW_COPY_AND_ASSIGN(ConnectJobTracker); | 207 DISALLOW_COPY_AND_ASSIGN(ConnectJobTracker); |
223 }; | 208 }; |
224 | 209 |
225 // Specialization of SourceTracker for handling Sockets. | 210 // Specialization of SourceTracker for handling Sockets. |
226 class SocketTracker : public SourceTracker { | 211 class SocketTracker : public SourceTracker { |
227 public: | 212 public: |
228 static const size_t kMaxNumSources; | 213 static const size_t kMaxNumSources; |
229 static const size_t kMaxGraveyardSize; | 214 static const size_t kMaxGraveyardSize; |
230 | 215 |
231 SocketTracker(); | 216 SocketTracker(); |
232 | 217 |
233 protected: | 218 protected: |
234 virtual Action DoAddEntry(const Entry& entry, SourceInfo* out_info); | 219 virtual Action DoAddEntry(const ChromeNetLog::Entry& entry, |
| 220 SourceInfo* out_info); |
235 | 221 |
236 private: | 222 private: |
237 DISALLOW_COPY_AND_ASSIGN(SocketTracker); | 223 DISALLOW_COPY_AND_ASSIGN(SocketTracker); |
238 }; | 224 }; |
239 | 225 |
240 // Specialization of SourceTracker for handling net::URLRequest/SocketStream. | 226 // Specialization of SourceTracker for handling net::URLRequest/SocketStream. |
241 class RequestTracker : public SourceTracker { | 227 class RequestTracker : public SourceTracker { |
242 public: | 228 public: |
243 static const size_t kMaxNumSources; | 229 static const size_t kMaxNumSources; |
244 static const size_t kMaxGraveyardSize; | 230 static const size_t kMaxGraveyardSize; |
245 | 231 |
246 explicit RequestTracker(PassiveLogCollector* parent); | 232 explicit RequestTracker(PassiveLogCollector* parent); |
247 | 233 |
248 protected: | 234 protected: |
249 virtual Action DoAddEntry(const Entry& entry, SourceInfo* out_info); | 235 virtual Action DoAddEntry(const ChromeNetLog::Entry& entry, |
| 236 SourceInfo* out_info); |
250 | 237 |
251 private: | 238 private: |
252 DISALLOW_COPY_AND_ASSIGN(RequestTracker); | 239 DISALLOW_COPY_AND_ASSIGN(RequestTracker); |
253 }; | 240 }; |
254 | 241 |
255 // Specialization of SourceTracker for handling | 242 // Specialization of SourceTracker for handling |
256 // SOURCE_INIT_PROXY_RESOLVER. | 243 // SOURCE_INIT_PROXY_RESOLVER. |
257 class InitProxyResolverTracker : public SourceTracker { | 244 class InitProxyResolverTracker : public SourceTracker { |
258 public: | 245 public: |
259 static const size_t kMaxNumSources; | 246 static const size_t kMaxNumSources; |
260 static const size_t kMaxGraveyardSize; | 247 static const size_t kMaxGraveyardSize; |
261 | 248 |
262 InitProxyResolverTracker(); | 249 InitProxyResolverTracker(); |
263 | 250 |
264 protected: | 251 protected: |
265 virtual Action DoAddEntry(const Entry& entry, SourceInfo* out_info); | 252 virtual Action DoAddEntry(const ChromeNetLog::Entry& entry, |
| 253 SourceInfo* out_info); |
266 | 254 |
267 private: | 255 private: |
268 DISALLOW_COPY_AND_ASSIGN(InitProxyResolverTracker); | 256 DISALLOW_COPY_AND_ASSIGN(InitProxyResolverTracker); |
269 }; | 257 }; |
270 | 258 |
271 // Tracks the log entries for the last seen SOURCE_SPDY_SESSION. | 259 // Tracks the log entries for the last seen SOURCE_SPDY_SESSION. |
272 class SpdySessionTracker : public SourceTracker { | 260 class SpdySessionTracker : public SourceTracker { |
273 public: | 261 public: |
274 static const size_t kMaxNumSources; | 262 static const size_t kMaxNumSources; |
275 static const size_t kMaxGraveyardSize; | 263 static const size_t kMaxGraveyardSize; |
276 | 264 |
277 SpdySessionTracker(); | 265 SpdySessionTracker(); |
278 | 266 |
279 protected: | 267 protected: |
280 virtual Action DoAddEntry(const Entry& entry, SourceInfo* out_info); | 268 virtual Action DoAddEntry(const ChromeNetLog::Entry& entry, |
| 269 SourceInfo* out_info); |
281 | 270 |
282 private: | 271 private: |
283 DISALLOW_COPY_AND_ASSIGN(SpdySessionTracker); | 272 DISALLOW_COPY_AND_ASSIGN(SpdySessionTracker); |
284 }; | 273 }; |
285 | 274 |
286 // Tracks the log entries for the last seen SOURCE_HOST_RESOLVER_IMPL_REQUEST. | 275 // Tracks the log entries for the last seen SOURCE_HOST_RESOLVER_IMPL_REQUEST. |
287 class DNSRequestTracker : public SourceTracker { | 276 class DNSRequestTracker : public SourceTracker { |
288 public: | 277 public: |
289 static const size_t kMaxNumSources; | 278 static const size_t kMaxNumSources; |
290 static const size_t kMaxGraveyardSize; | 279 static const size_t kMaxGraveyardSize; |
291 | 280 |
292 DNSRequestTracker(); | 281 DNSRequestTracker(); |
293 | 282 |
294 protected: | 283 protected: |
295 virtual Action DoAddEntry(const Entry& entry, SourceInfo* out_info); | 284 virtual Action DoAddEntry(const ChromeNetLog::Entry& entry, |
| 285 SourceInfo* out_info); |
296 | 286 |
297 private: | 287 private: |
298 DISALLOW_COPY_AND_ASSIGN(DNSRequestTracker); | 288 DISALLOW_COPY_AND_ASSIGN(DNSRequestTracker); |
299 }; | 289 }; |
300 | 290 |
301 // Tracks the log entries for the last seen SOURCE_HOST_RESOLVER_IMPL_JOB. | 291 // Tracks the log entries for the last seen SOURCE_HOST_RESOLVER_IMPL_JOB. |
302 class DNSJobTracker : public SourceTracker { | 292 class DNSJobTracker : public SourceTracker { |
303 public: | 293 public: |
304 static const size_t kMaxNumSources; | 294 static const size_t kMaxNumSources; |
305 static const size_t kMaxGraveyardSize; | 295 static const size_t kMaxGraveyardSize; |
306 | 296 |
307 DNSJobTracker(); | 297 DNSJobTracker(); |
308 | 298 |
309 protected: | 299 protected: |
310 virtual Action DoAddEntry(const Entry& entry, SourceInfo* out_info); | 300 virtual Action DoAddEntry(const ChromeNetLog::Entry& entry, |
| 301 SourceInfo* out_info); |
311 | 302 |
312 private: | 303 private: |
313 DISALLOW_COPY_AND_ASSIGN(DNSJobTracker); | 304 DISALLOW_COPY_AND_ASSIGN(DNSJobTracker); |
314 }; | 305 }; |
315 | 306 |
316 PassiveLogCollector(); | 307 PassiveLogCollector(); |
317 ~PassiveLogCollector(); | 308 ~PassiveLogCollector(); |
318 | 309 |
319 // Observer implementation: | 310 // ThreadSafeObserver implementation: |
320 virtual void OnAddEntry(net::NetLog::EventType type, | 311 virtual void OnAddEntry(net::NetLog::EventType type, |
321 const base::TimeTicks& time, | 312 const base::TimeTicks& time, |
322 const net::NetLog::Source& source, | 313 const net::NetLog::Source& source, |
323 net::NetLog::EventPhase phase, | 314 net::NetLog::EventPhase phase, |
324 net::NetLog::EventParameters* params); | 315 net::NetLog::EventParameters* params); |
325 | 316 |
326 // Returns the tracker to use for sources of type |source_type|, or NULL. | |
327 SourceTrackerInterface* GetTrackerForSourceType( | |
328 net::NetLog::SourceType source_type); | |
329 | |
330 // Clears all of the passively logged data. | 317 // Clears all of the passively logged data. |
331 void Clear(); | 318 void Clear(); |
332 | 319 |
333 // Fills |out| with the full list of events that have been passively | 320 // Fills |out| with the full list of events that have been passively |
334 // captured. The list is ordered by capture time. | 321 // captured. The list is ordered by capture time. |
335 void GetAllCapturedEvents(EntryList* out) const; | 322 void GetAllCapturedEvents(ChromeNetLog::EntryList* out) const; |
336 | 323 |
337 private: | 324 private: |
| 325 // Returns the tracker to use for sources of type |source_type|, or NULL. |
| 326 SourceTrackerInterface* GetTrackerForSourceType_( |
| 327 net::NetLog::SourceType source_type); |
| 328 |
338 FRIEND_TEST_ALL_PREFIXES(PassiveLogCollectorTest, | 329 FRIEND_TEST_ALL_PREFIXES(PassiveLogCollectorTest, |
339 HoldReferenceToDependentSource); | 330 HoldReferenceToDependentSource); |
340 FRIEND_TEST_ALL_PREFIXES(PassiveLogCollectorTest, | 331 FRIEND_TEST_ALL_PREFIXES(PassiveLogCollectorTest, |
341 HoldReferenceToDeletedSource); | 332 HoldReferenceToDeletedSource); |
342 | 333 |
343 GlobalSourceTracker global_source_tracker_; | 334 GlobalSourceTracker global_source_tracker_; |
344 ConnectJobTracker connect_job_tracker_; | 335 ConnectJobTracker connect_job_tracker_; |
345 SocketTracker socket_tracker_; | 336 SocketTracker socket_tracker_; |
346 RequestTracker url_request_tracker_; | 337 RequestTracker url_request_tracker_; |
347 RequestTracker socket_stream_tracker_; | 338 RequestTracker socket_stream_tracker_; |
348 InitProxyResolverTracker init_proxy_resolver_tracker_; | 339 InitProxyResolverTracker init_proxy_resolver_tracker_; |
349 SpdySessionTracker spdy_session_tracker_; | 340 SpdySessionTracker spdy_session_tracker_; |
350 DNSRequestTracker dns_request_tracker_; | 341 DNSRequestTracker dns_request_tracker_; |
351 DNSJobTracker dns_job_tracker_; | 342 DNSJobTracker dns_job_tracker_; |
352 | 343 |
353 // This array maps each NetLog::SourceType to one of the tracker instances | 344 // This array maps each NetLog::SourceType to one of the tracker instances |
354 // defined above. Use of this array avoid duplicating the list of trackers | 345 // defined above. Use of this array avoid duplicating the list of trackers |
355 // elsewhere. | 346 // elsewhere. |
356 SourceTrackerInterface* trackers_[net::NetLog::SOURCE_COUNT]; | 347 SourceTrackerInterface* trackers_[net::NetLog::SOURCE_COUNT]; |
357 | 348 |
358 // The count of how many events have flowed through this log. Used to set the | 349 // The count of how many events have flowed through this log. Used to set the |
359 // "order" field on captured events. | 350 // "order" field on captured events. |
360 uint32 num_events_seen_; | 351 uint32 num_events_seen_; |
361 | 352 |
362 DISALLOW_COPY_AND_ASSIGN(PassiveLogCollector); | 353 DISALLOW_COPY_AND_ASSIGN(PassiveLogCollector); |
363 }; | 354 }; |
364 | 355 |
365 #endif // CHROME_BROWSER_NET_PASSIVE_LOG_COLLECTOR_H_ | 356 #endif // CHROME_BROWSER_NET_PASSIVE_LOG_COLLECTOR_H_ |
OLD | NEW |