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

Unified Diff: net/base/address_list.h

Issue 10539094: NetLogEventParameter to Callback refactoring 1, (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Remove unneeded line 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
« no previous file with comments | « no previous file | net/base/address_list.cc » ('j') | net/socket/ssl_client_socket_nss.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/base/address_list.h
===================================================================
--- net/base/address_list.h (revision 141407)
+++ net/base/address_list.h (working copy)
@@ -13,6 +13,7 @@
#include "base/compiler_specific.h"
#include "net/base/ip_endpoint.h"
#include "net/base/net_export.h"
+#include "net/base/net_log.h"
#include "net/base/net_util.h"
struct addrinfo;
@@ -50,6 +51,11 @@
// Sets canonical name to the literal of the first IP address on the list.
void SetDefaultCanonicalName();
+ // Creates a callback for use with the NetLog that returns a Value
+ // representation of the address list. The callback must be destroyed before
+ // |this| is.
+ NetLog::ParametersCallback CreateNetLogCallback() const;
+
// Exposed methods from std::vector.
using std::vector<IPEndPoint>::size;
using std::vector<IPEndPoint>::empty;
@@ -70,7 +76,7 @@
using std::vector<IPEndPoint>::rend;
private:
- // TODO(szym): Remove. http://crbug.com/126134
+ // TODO(szym): Remove. http://crbug.com/126134
std::string canonical_name_;
};
« no previous file with comments | « no previous file | net/base/address_list.cc » ('j') | net/socket/ssl_client_socket_nss.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698