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

Unified Diff: http_fetcher.h

Issue 5835004: AU: MultiHttpFetcher cleanup/rewrite (Closed) Base URL: http://git.chromium.org/git/update_engine.git@master
Patch Set: Created 10 years 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
Index: http_fetcher.h
diff --git a/http_fetcher.h b/http_fetcher.h
index a50c760f35aa519f27b0986193c148b8fc3a33bd..79561c09dc00304a568c93572195e0a0aabb9bd1 100644
--- a/http_fetcher.h
+++ b/http_fetcher.h
@@ -86,6 +86,11 @@ class HttpFetcher {
virtual void set_idle_seconds(int seconds) {}
virtual void set_retry_seconds(int seconds) {}
+ ProxyResolver* proxy_resolver() const { return proxy_resolver_; }
+
+ virtual void SetConnectionAsExpensive(bool is_expensive) {}
petkov 2010/12/16 18:30:57 Maybe add a comment that these methods are used fo
adlr 2010/12/17 01:03:51 Done.
+ virtual void SetBuildType(bool is_official) {}
+
protected:
// The URL we're actively fetching from
std::string url_;
@@ -122,6 +127,9 @@ class HttpFetcherDelegate {
// Called if the fetcher seeks to a particular offset.
virtual void SeekToOffset(off_t offset) {}
+ // When a transfer has completed, exactly one of these two methods will be
petkov 2010/12/16 18:30:57 You may want to combine the docstrings for the two
adlr 2010/12/17 01:03:51 Done.
+ // called:
+
// Called when the transfer has completed successfully or been aborted through
// means other than TerminateTransfer. It's OK to destroy the |fetcher| object
// in this callback.
« no previous file with comments | « SConstruct ('k') | http_fetcher_unittest.cc » ('j') | multi_range_http_fetcher.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698