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

Unified Diff: net/http/partial_data.h

Issue 339088: Http cache: Always preserve extra headers when dealing with... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 1 month 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 | « net/http/http_cache_unittest.cc ('k') | net/http/partial_data.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « net/http/http_cache_unittest.cc ('k') | net/http/partial_data.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698