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

Unified Diff: http_fetcher.h

Issue 3591018: AU: MultiHttpFetcher, an HttpFetcher for specific byte ranges (Closed) Base URL: ssh://git@chromiumos-git/update_engine.git
Patch Set: fixes for rewview Created 10 years, 2 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 | http_fetcher_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: http_fetcher.h
diff --git a/http_fetcher.h b/http_fetcher.h
index f8e510a61d4c7fd241a8b3f28e0317eb9deea145..f61116a1dc05ad762bf7d3a7f7eccc56ef0e5551 100644
--- a/http_fetcher.h
+++ b/http_fetcher.h
@@ -42,6 +42,9 @@ class HttpFetcher {
post_data_.insert(post_data_.end(), char_data, char_data + size);
}
+ // Downloading should resume from this offset
+ virtual void SetOffset(off_t offset) = 0;
+
// Begins the transfer to the specified URL.
virtual void BeginTransfer(const std::string& url) = 0;
@@ -59,6 +62,11 @@ class HttpFetcher {
// Unpause() returns
virtual void Unpause() = 0;
+ // These two function are overloaded in LibcurlHttp fetcher to speed
+ // testing.
+ virtual void set_idle_seconds(int seconds) {}
+ virtual void set_retry_seconds(int seconds) {}
+
protected:
// The URL we're actively fetching from
std::string url_;
« no previous file with comments | « no previous file | http_fetcher_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698