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

Unified Diff: net/base/net_log.h

Issue 10539094: NetLogEventParameter to Callback refactoring 1, (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Fix headers 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 141407)
+++ net/base/net_log.h (working copy)
@@ -296,6 +296,13 @@
// Warning: |name| must remain valid for the life of the callback.
static ParametersCallback IntegerCallback(const char* name, int value);
+ // Creates a ParametersCallback that encapsulates a single integer. Takes
eroman 2012/06/11 23:42:25 Update comment: "single integer" --> string
mmenke 2012/06/12 00:42:19 Done.
+ // |value| as a pointer to avoid copying, and emphasize it must be valid for
eroman 2012/06/11 23:42:25 Should we describe anything about the encoding of
mmenke 2012/06/12 00:42:19 Done, though we actually violate it at times (Sinc
+ // the life of the callback.
+ // Warning: |name| and |value| must remain valid for the life of the callback.
+ static ParametersCallback StringCallback(const char* name,
+ const std::string* value);
+
protected:
// Child classes should respond to the new entry here. This includes
// creating the Entry object and alerting their observers.

Powered by Google App Engine
This is Rietveld 408576698