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

Unified Diff: components/cronet/android/url_request_peer.h

Issue 268353013: Upstream changes to HttpUrlRequest for querying response headers and closing ReadableByteChannel. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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
Index: components/cronet/android/url_request_peer.h
diff --git a/components/cronet/android/url_request_peer.h b/components/cronet/android/url_request_peer.h
index ddd5e235b802ea84153d3f3404b19bc31dc64d78..d54bc9121a1a87d6e8edd3604175de7c7c58a962 100644
--- a/components/cronet/android/url_request_peer.h
+++ b/components/cronet/android/url_request_peer.h
@@ -84,6 +84,9 @@ class URLRequestPeer : public net::URLRequest::Delegate {
// Returns the value of the content-type response header.
std::string content_type() const { return content_type_; }
+ // Returns the value of the specified response header.
+ std::string GetHeader(const std::string& name) const;
+
// Returns the overall number of bytes read.
size_t bytes_read() const { return bytes_read_; }

Powered by Google App Engine
This is Rietveld 408576698