| Index: net/http/partial_data.h
|
| ===================================================================
|
| --- net/http/partial_data.h (revision 30754)
|
| +++ net/http/partial_data.h (working copy)
|
| @@ -38,11 +38,14 @@
|
|
|
| // Performs initialization of the object by parsing the request |headers|
|
| // and verifying that we can process the requested range. Returns true if
|
| - // we can process the requested range, and false otherwise. |new_headers| is
|
| - // a subset of the request extra headers, with byte-range related headers
|
| - // removed so that we can easily add any byte-range that we need.
|
| - bool Init(const std::string& headers, const std::string& new_headers);
|
| + // we can process the requested range, and false otherwise.
|
| + bool Init(const std::string& headers);
|
|
|
| + // Sets the headers that we should use to make byte range requests. This is a
|
| + // subset of the request extra headers, with byte-range related headers
|
| + // removed.
|
| + void SetHeaders(const std::string& headers);
|
| +
|
| // Restores the byte-range header that was removed during Init(), by appending
|
| // the data to the provided |headers|.
|
| void RestoreHeaders(std::string* headers) const;
|
|
|