summaryrefslogtreecommitdiffstats
path: root/net/http/http_net_log_params.h
diff options
context:
space:
mode:
Diffstat (limited to 'net/http/http_net_log_params.h')
-rw-r--r--net/http/http_net_log_params.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/net/http/http_net_log_params.h b/net/http/http_net_log_params.h
index a1d3db8..5a5e84b 100644
--- a/net/http/http_net_log_params.h
+++ b/net/http/http_net_log_params.h
@@ -10,6 +10,7 @@
#include "base/basictypes.h"
#include "base/ref_counted.h"
+#include "base/stringprintf.h"
#include "base/values.h"
#include "net/base/net_log.h"
#include "net/http/http_request_headers.h"
@@ -32,9 +33,9 @@ class NetLogHttpRequestParameter : public NetLog::EventParameters {
HttpRequestHeaders::Iterator iterator(headers_);
while (iterator.GetNext()) {
headers->Append(
- new StringValue(StringPrintf("%s: %s",
- iterator.name().c_str(),
- iterator.value().c_str())));
+ new StringValue(base::StringPrintf("%s: %s",
+ iterator.name().c_str(),
+ iterator.value().c_str())));
}
dict->Set("headers", headers);
return dict;
@@ -64,7 +65,8 @@ class NetLogHttpResponseParameter : public NetLog::EventParameters {
std::string value;
while (headers_->EnumerateHeaderLines(&iterator, &name, &value)) {
headers->Append(
- new StringValue(StringPrintf("%s: %s", name.c_str(), value.c_str())));
+ new StringValue(base::StringPrintf("%s: %s", name.c_str(),
+ value.c_str())));
}
dict->Set("headers", headers);
return dict;