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

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

Issue 723343002: Update from https://crrev.com/304121 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 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
« no previous file with comments | « net/base/net_errors.cc ('k') | net/base/net_log_event_type_list.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_BASE_NET_LOG_H_ 5 #ifndef NET_BASE_NET_LOG_H_
6 #define NET_BASE_NET_LOG_H_ 6 #define NET_BASE_NET_LOG_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/atomicops.h" 10 #include "base/atomicops.h"
11 #include "base/basictypes.h" 11 #include "base/basictypes.h"
12 #include "base/callback_forward.h" 12 #include "base/callback_forward.h"
13 #include "base/compiler_specific.h" 13 #include "base/compiler_specific.h"
14 #include "base/observer_list.h" 14 #include "base/observer_list.h"
15 #include "base/strings/string16.h" 15 #include "base/strings/string16.h"
16 #include "base/synchronization/lock.h" 16 #include "base/synchronization/lock.h"
17 #include "base/time/time.h" 17 #include "base/time/time.h"
18 #include "net/base/net_export.h" 18 #include "net/base/net_export.h"
19 19
20 namespace base { 20 namespace base {
21 class DictionaryValue; 21 class DictionaryValue;
22 class Value; 22 class Value;
23 } 23 }
24 24
25 namespace net { 25 namespace net {
26 26
27 // NetLog is the destination for log messages generated by the network stack. 27 // NetLog is the destination for log messages generated by the network stack.
28 // Each log message has a "source" field which identifies the specific entity 28 // Each log message has a "source" field which identifies the specific entity
29 // that generated the message (for example, which URLRequest or which 29 // that generated the message (for example, which URLRequest or which
30 // SocketStream). 30 // SpdySession).
31 // 31 //
32 // To avoid needing to pass in the "source ID" to the logging functions, NetLog 32 // To avoid needing to pass in the "source ID" to the logging functions, NetLog
33 // is usually accessed through a BoundNetLog, which will always pass in a 33 // is usually accessed through a BoundNetLog, which will always pass in a
34 // specific source ID. 34 // specific source ID.
35 // 35 //
36 // All methods are thread safe, with the exception that no NetLog or 36 // All methods are thread safe, with the exception that no NetLog or
37 // NetLog::ThreadSafeObserver functions may be called by an observer's 37 // NetLog::ThreadSafeObserver functions may be called by an observer's
38 // OnAddEntry() method. Doing so will result in a deadlock. 38 // OnAddEntry() method. Doing so will result in a deadlock.
39 // 39 //
40 // For a broader introduction see the design document: 40 // For a broader introduction see the design document:
(...skipping 351 matching lines...) Expand 10 before | Expand all | Expand 10 after
392 : source_(source), net_log_(net_log) { 392 : source_(source), net_log_(net_log) {
393 } 393 }
394 394
395 NetLog::Source source_; 395 NetLog::Source source_;
396 NetLog* net_log_; 396 NetLog* net_log_;
397 }; 397 };
398 398
399 } // namespace net 399 } // namespace net
400 400
401 #endif // NET_BASE_NET_LOG_H_ 401 #endif // NET_BASE_NET_LOG_H_
OLDNEW
« no previous file with comments | « net/base/net_errors.cc ('k') | net/base/net_log_event_type_list.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698