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

Unified Diff: mock_http_fetcher.h

Issue 4131005: AU: Push seeks in http fetching to the progress percentage. (Closed) Base URL: http://git.chromium.org/git/update_engine.git
Patch Set: fix for review 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 | « http_fetcher.h ('k') | multi_http_fetcher.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mock_http_fetcher.h
diff --git a/mock_http_fetcher.h b/mock_http_fetcher.h
index 91d50dd8747c0bdb85280f195fb59fd10e4ff4f7..f0830f0c553ee7b670c055e94159d9d1b5495cda 100644
--- a/mock_http_fetcher.h
+++ b/mock_http_fetcher.h
@@ -35,7 +35,11 @@ class MockHttpFetcher : public HttpFetcher {
~MockHttpFetcher();
// Ignores this.
- virtual void SetOffset(off_t offset) {}
+ virtual void SetOffset(off_t offset) {
+ sent_size_ = offset;
+ if (delegate_)
+ delegate_->SeekToOffset(offset);
+ }
// Begins the transfer if it hasn't already begun.
virtual void BeginTransfer(const std::string& url);
« no previous file with comments | « http_fetcher.h ('k') | multi_http_fetcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698