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

Unified Diff: libcurl_http_fetcher.h

Issue 5205002: AU: Manual proxy support (Closed) Base URL: http://git.chromium.org/git/update_engine.git@master
Patch Set: Created 10 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
Index: libcurl_http_fetcher.h
diff --git a/libcurl_http_fetcher.h b/libcurl_http_fetcher.h
index b3ba518d5f6e865b447f5a08f7361e8f74844527..21610b2b8e71dec7b15ed41c003fb57d4796d0d8 100644
--- a/libcurl_http_fetcher.h
+++ b/libcurl_http_fetcher.h
@@ -22,8 +22,9 @@ class LibcurlHttpFetcher : public HttpFetcher {
public:
static const int kMaxRedirects = 10;
- LibcurlHttpFetcher()
- : curl_multi_handle_(NULL),
+ LibcurlHttpFetcher(ProxyResolver* proxy_resolver)
petkov 2010/11/19 05:37:15 explicit?
adlr 2010/11/20 02:52:29 Done.
+ : HttpFetcher(proxy_resolver),
+ curl_multi_handle_(NULL),
curl_handle_(NULL),
timeout_source_(NULL),
transfer_in_progress_(false),
@@ -38,6 +39,7 @@ class LibcurlHttpFetcher : public HttpFetcher {
force_build_type_(false),
forced_official_build_(false),
in_write_callback_(false),
+ sent_byte_(false),
terminate_requested_(false) {}
// Cleans up all internal state. Does not notify delegate
@@ -198,6 +200,10 @@ class LibcurlHttpFetcher : public HttpFetcher {
// If true, we are currently performing a write callback on the delegate.
bool in_write_callback_;
+
+ // If true, we have returned at least one byte in the write callback
+ // to the delegate.
+ bool sent_byte_;
// We can't clean everything up while we're in a write callback, so
// if we get a terminate request, queue it until we can handle it.

Powered by Google App Engine
This is Rietveld 408576698