summaryrefslogtreecommitdiffstats
path: root/net/http
diff options
context:
space:
mode:
Diffstat (limited to 'net/http')
-rw-r--r--net/http/http_response_headers.cc3
-rw-r--r--net/http/http_response_headers.h3
-rw-r--r--net/http/http_response_headers_unittest.cc2
-rw-r--r--net/http/http_response_info.cc2
-rw-r--r--net/http/http_vary_data.cc4
-rw-r--r--net/http/http_vary_data.h5
6 files changed, 11 insertions, 8 deletions
diff --git a/net/http/http_response_headers.cc b/net/http/http_response_headers.cc
index 4916498..33d78da 100644
--- a/net/http/http_response_headers.cc
+++ b/net/http/http_response_headers.cc
@@ -169,7 +169,8 @@ HttpResponseHeaders::HttpResponseHeaders(const std::string& raw_input)
GetAllHttpResponseCodes());
}
-HttpResponseHeaders::HttpResponseHeaders(const Pickle& pickle, void** iter)
+HttpResponseHeaders::HttpResponseHeaders(const Pickle& pickle,
+ PickleIterator* iter)
: response_code_(-1) {
std::string raw_input;
if (pickle.ReadString(iter, &raw_input))
diff --git a/net/http/http_response_headers.h b/net/http/http_response_headers.h
index 0ab162e..6fbc0bb 100644
--- a/net/http/http_response_headers.h
+++ b/net/http/http_response_headers.h
@@ -16,6 +16,7 @@
#include "net/http/http_version.h"
class Pickle;
+class PickleIterator;
namespace base {
class Time;
@@ -52,7 +53,7 @@ class NET_EXPORT HttpResponseHeaders
// Initializes from the representation stored in the given pickle. The data
// for this object is found relative to the given pickle_iter, which should
// be passed to the pickle's various Read* methods.
- HttpResponseHeaders(const Pickle& pickle, void** pickle_iter);
+ HttpResponseHeaders(const Pickle& pickle, PickleIterator* pickle_iter);
// Appends a representation of this object to the given pickle.
// The options argument can be a combination of PersistOptions.
diff --git a/net/http/http_response_headers_unittest.cc b/net/http/http_response_headers_unittest.cc
index 775946c..f7c5e6f5 100644
--- a/net/http/http_response_headers_unittest.cc
+++ b/net/http/http_response_headers_unittest.cc
@@ -475,7 +475,7 @@ TEST(HttpResponseHeadersTest, Persist) {
Pickle pickle;
parsed1->Persist(&pickle, tests[i].options);
- void* iter = NULL;
+ PickleIterator iter(pickle);
scoped_refptr<net::HttpResponseHeaders> parsed2(
new net::HttpResponseHeaders(pickle, &iter));
diff --git a/net/http/http_response_info.cc b/net/http/http_response_info.cc
index 951e2b6..542bdb0 100644
--- a/net/http/http_response_info.cc
+++ b/net/http/http_response_info.cc
@@ -116,7 +116,7 @@ HttpResponseInfo& HttpResponseInfo::operator=(const HttpResponseInfo& rhs) {
bool HttpResponseInfo::InitFromPickle(const Pickle& pickle,
bool* response_truncated) {
- void* iter = NULL;
+ PickleIterator iter(pickle);
// read flags and verify version
int flags;
diff --git a/net/http/http_vary_data.cc b/net/http/http_vary_data.cc
index 882dc78..c716ca0 100644
--- a/net/http/http_vary_data.cc
+++ b/net/http/http_vary_data.cc
@@ -1,4 +1,4 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -64,7 +64,7 @@ bool HttpVaryData::Init(const HttpRequestInfo& request_info,
return is_valid_ = true;
}
-bool HttpVaryData::InitFromPickle(const Pickle& pickle, void** iter) {
+bool HttpVaryData::InitFromPickle(const Pickle& pickle, PickleIterator* iter) {
is_valid_ = false;
const char* data;
if (pickle.ReadBytes(iter, &data, sizeof(request_digest_))) {
diff --git a/net/http/http_vary_data.h b/net/http/http_vary_data.h
index baa4d88..4e7a542 100644
--- a/net/http/http_vary_data.h
+++ b/net/http/http_vary_data.h
@@ -1,4 +1,4 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -10,6 +10,7 @@
#include "net/base/net_export.h"
class Pickle;
+class PickleIterator;
namespace net {
@@ -52,7 +53,7 @@ class NET_EXPORT_PRIVATE HttpVaryData {
// is_valid() will return true. Otherwise, false is returned to indicate
// that this object is marked as invalid.
//
- bool InitFromPickle(const Pickle& pickle, void** pickle_iter);
+ bool InitFromPickle(const Pickle& pickle, PickleIterator* pickle_iter);
// Call this method to persist the vary data. Illegal to call this on an
// invalid object.