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

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

Issue 423163007: Add method getAllHeaders to HttpUrlRequest. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 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 e8d79a6d43e0f6988472e2172ce04d5613518c2c..331a7e5db2ffce0c0f428a13a732caa6e24cddd4 100644
--- a/components/cronet/android/url_request_peer.h
+++ b/components/cronet/android/url_request_peer.h
@@ -18,6 +18,7 @@
namespace net {
class GrowableIOBuffer;
+class HttpResponseHeaders;
class UploadDataStream;
} // namespace net
@@ -90,6 +91,9 @@ class URLRequestPeer : public net::URLRequest::Delegate {
// Returns the value of the specified response header.
std::string GetHeader(const std::string& name) const;
+ // Get all response headers, as a HttpResponseHeaders object.
+ net::HttpResponseHeaders* response_headers() const;
mmenke 2014/08/04 21:39:55 If this isn't inlined, should get called GetRespon
mef 2014/08/04 21:57:53 Done.
+
// Returns the overall number of bytes read.
size_t bytes_read() const { return bytes_read_; }

Powered by Google App Engine
This is Rietveld 408576698