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

Unified Diff: net/base/net_log.h

Issue 10542153: NetLogEventParameter to Callback refactoring 11. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: net/base/net_log.h
===================================================================
--- net/base/net_log.h (revision 142108)
+++ net/base/net_log.h (working copy)
@@ -300,6 +300,12 @@
// Warning: |name| must remain valid for the life of the callback.
static ParametersCallback IntegerCallback(const char* name, int value);
eroman 2012/06/14 18:04:31 We may want to add a todo to rename this to Int32C
mmenke 2012/06/14 18:49:42 TODO added.
+ // 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.

Powered by Google App Engine
This is Rietveld 408576698