diff options
Diffstat (limited to 'net/http/http_util.h')
-rw-r--r-- | net/http/http_util.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/net/http/http_util.h b/net/http/http_util.h index 33da33d..3179782 100644 --- a/net/http/http_util.h +++ b/net/http/http_util.h @@ -10,6 +10,7 @@ #include "base/string_tokenizer.h" #include "googleurl/src/gurl.h" +#include "net/base/completion_callback.h" #include "net/http/http_byte_range.h" // This is a macro to support extending this string literal at compile time. @@ -18,6 +19,8 @@ namespace net { +class HttpStream; + class HttpUtil { public: // Returns the absolute path of the URL, to be used for the http request. @@ -247,6 +250,10 @@ class HttpUtil { std::string::const_iterator value_begin_; std::string::const_iterator value_end_; }; + + // Attempts to read all of the response body of |stream|. Closes |stream| and + // deletes it when complete. + static void DrainStreamBodyAndClose(HttpStream* stream); }; } // namespace net |