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

Side by Side Diff: net/log/net_log.h

Issue 1841863002: Update monet. (Closed) Base URL: https://github.com/domokit/monet.git@master
Patch Set: Created 4 years, 8 months 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_LOG_NET_LOG_H_ 5 #ifndef NET_LOG_NET_LOG_H_
6 #define NET_LOG_NET_LOG_H_ 6 #define NET_LOG_NET_LOG_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "build/build_config.h" 10 #include "build/build_config.h"
(...skipping 293 matching lines...) Expand 10 before | Expand all | Expand 10 after
304 304
305 // Last assigned source ID. Incremented to get the next one. 305 // Last assigned source ID. Incremented to get the next one.
306 base::subtle::Atomic32 last_id_; 306 base::subtle::Atomic32 last_id_;
307 307
308 // |is_capturing_| will be 0 when there are no observers watching the NetLog, 308 // |is_capturing_| will be 0 when there are no observers watching the NetLog,
309 // 1 otherwise. Note that this is stored as an Atomic32 rather than a boolean 309 // 1 otherwise. Note that this is stored as an Atomic32 rather than a boolean
310 // so it can be accessed without needing a lock. 310 // so it can be accessed without needing a lock.
311 base::subtle::Atomic32 is_capturing_; 311 base::subtle::Atomic32 is_capturing_;
312 312
313 // |lock_| must be acquired whenever reading or writing to this. 313 // |lock_| must be acquired whenever reading or writing to this.
314 ObserverList<ThreadSafeObserver, true> observers_; 314 base::ObserverList<ThreadSafeObserver, true> observers_;
315 315
316 DISALLOW_COPY_AND_ASSIGN(NetLog); 316 DISALLOW_COPY_AND_ASSIGN(NetLog);
317 }; 317 };
318 318
319 // Helper that binds a Source to a NetLog, and exposes convenience methods to 319 // Helper that binds a Source to a NetLog, and exposes convenience methods to
320 // output log messages without needing to pass in the source. 320 // output log messages without needing to pass in the source.
321 class NET_EXPORT BoundNetLog { 321 class NET_EXPORT BoundNetLog {
322 public: 322 public:
323 BoundNetLog() : net_log_(NULL) {} 323 BoundNetLog() : net_log_(NULL) {}
324 ~BoundNetLog(); 324 ~BoundNetLog();
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
388 NetLog::Source source_; 388 NetLog::Source source_;
389 NetLog* net_log_; 389 NetLog* net_log_;
390 390
391 // TODO(eroman): Temporary until crbug.com/467797 is solved. 391 // TODO(eroman): Temporary until crbug.com/467797 is solved.
392 Liveness liveness_ = ALIVE; 392 Liveness liveness_ = ALIVE;
393 }; 393 };
394 394
395 } // namespace net 395 } // namespace net
396 396
397 #endif // NET_LOG_NET_LOG_H_ 397 #endif // NET_LOG_NET_LOG_H_
OLDNEW
« no previous file with comments | « net/http/transport_security_persister_unittest.cc ('k') | net/log/trace_net_log_observer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698