AU: Push seeks in http fetching to the progress percentage.

The updater was reporting status as a fraction of bytes downloaded vs
total, ignoring any bytes that were skipped due to resuming an
upload. The result was that a user may see progress go from 0 to 60
percent, then reboot, then see progress go from 0 to 40 percent, then
finish.

This CL allows an HTTP fetcher to report to the delegate that it's
seeking to a particular offset.

BUG=8151
TEST=applied updates on the machine; unittest

Review URL: http://codereview.chromium.org/4131005

Change-Id: Ib9fe034ca3ffd17455af4cf89d5b28ec236104a0
diff --git a/mock_http_fetcher.h b/mock_http_fetcher.h
index 91d50dd..f0830f0 100644
--- a/mock_http_fetcher.h
+++ b/mock_http_fetcher.h
@@ -35,7 +35,11 @@
   ~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);