summaryrefslogtreecommitdiffstats
path: root/net/base/net_log.h
diff options
context:
space:
mode:
authormmenke@chromium.org <mmenke@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-10-18 20:08:10 +0000
committermmenke@chromium.org <mmenke@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-10-18 20:08:10 +0000
commit8866f623dfd914c9f4c26ab96f90aecf4a372ef9 (patch)
tree4f45fa083309b6934e1888c27c9df2344cd391f0 /net/base/net_log.h
parentdef979a39bd25dfb24c80138699ffb359c495757 (diff)
downloadchromium_src-8866f623dfd914c9f4c26ab96f90aecf4a372ef9.zip
chromium_src-8866f623dfd914c9f4c26ab96f90aecf4a372ef9.tar.gz
chromium_src-8866f623dfd914c9f4c26ab96f90aecf4a372ef9.tar.bz2
Add NetLog support to UDP sockets.
BUG=99508 TEST=UDPSocketTest.Connect Review URL: http://codereview.chromium.org/8200011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@106109 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/base/net_log.h')
-rw-r--r--net/base/net_log.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/net/base/net_log.h b/net/base/net_log.h
index 51f6f65..8a5f5ff 100644
--- a/net/base/net_log.h
+++ b/net/base/net_log.h
@@ -243,6 +243,13 @@ class NET_EXPORT BoundNetLog {
void EndEvent(NetLog::EventType event_type,
const scoped_refptr<NetLog::EventParameters>& params) const;
+ // Just like AddEvent, except |net_error| is a net error code. A parameter
+ // called "net_error" with the indicated value will be recorded for the event.
+ // |net_error| must be negative, and not ERR_IO_PENDING, as it's not a true
+ // error.
+ void AddEventWithNetErrorCode(NetLog::EventType event_type,
+ int net_error) const;
+
// Just like EndEvent, except |net_error| is a net error code. If it's
// negative, a parameter called "net_error" with a value of |net_error| is
// associated with the event. Otherwise, the end event has no parameters.
@@ -253,7 +260,7 @@ class NET_EXPORT BoundNetLog {
// Logs a byte transfer event to the NetLog. Determines whether to log the
// received bytes or not based on the current logging level.
void AddByteTransferEvent(NetLog::EventType event_type,
- int byte_count, char* bytes) const;
+ int byte_count, const char* bytes) const;
NetLog::LogLevel GetLogLevel() const;