summaryrefslogtreecommitdiffstats
path: root/net/base/net_log.h
diff options
context:
space:
mode:
authormmenke@chromium.org <mmenke@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-06-14 20:56:26 +0000
committermmenke@chromium.org <mmenke@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-06-14 20:56:26 +0000
commit2fa0891a044df590f5dfe36ad9520c97c84f54f2 (patch)
tree7d6ad8963c1a01313b2b1d5ee0dd92267357f905 /net/base/net_log.h
parent422d4f32eea10b9d79e305ff7d3c80cfc59a3b51 (diff)
downloadchromium_src-2fa0891a044df590f5dfe36ad9520c97c84f54f2.zip
chromium_src-2fa0891a044df590f5dfe36ad9520c97c84f54f2.tar.gz
chromium_src-2fa0891a044df590f5dfe36ad9520c97c84f54f2.tar.bz2
NetLogEventParameter to Callback refactoring 11.
Get rid of all uses of NetLog::EventParameters in all remaining locations (downloads, appcache, io thread, chrome_network_delegate. R=eroman@chromium.org,rdsmith@chromium.org,michaeln@chromium.org BUG=126243 Review URL: https://chromiumcodereview.appspot.com/10542153 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@142217 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/base/net_log.h')
-rw-r--r--net/base/net_log.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/net/base/net_log.h b/net/base/net_log.h
index 324753b..f5f9260 100644
--- a/net/base/net_log.h
+++ b/net/base/net_log.h
@@ -298,8 +298,15 @@ class NET_EXPORT NetLog {
// Creates a ParametersCallback that encapsulates a single integer.
// Warning: |name| must remain valid for the life of the callback.
+ // TODO(mmenke): Rename this to be consistent with Int64Callback.
static ParametersCallback IntegerCallback(const char* name, int value);
+ // Creates a ParametersCallback that encapsulates a single int64. The
+ // callback will return the value as a StringValue, since IntegerValues
+ // only support 32-bit values.
+ // Warning: |name| must remain valid for the life of the callback.
+ static ParametersCallback Int64Callback(const char* name, int64 value);
+
// Creates a ParametersCallback that encapsulates a single UTF8 string. Takes
// |value| as a pointer to avoid copying, and emphasize it must be valid for
// the life of the callback. |value| may not be NULL.