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

Unified Diff: third_party/WebKit/Source/modules/fetch/Response.h

Issue 1455693003: Add comment to BodyStreamBuffer accessors for Response class (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: a Created 4 years, 5 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
« no previous file with comments | « third_party/WebKit/Source/modules/fetch/FetchResponseData.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/modules/fetch/Response.h
diff --git a/third_party/WebKit/Source/modules/fetch/Response.h b/third_party/WebKit/Source/modules/fetch/Response.h
index b05e275346c74b3780d5bb0afe0f69e7cae869f5..1edeec8c3004e8fbe57e0a5a271ea35f1070ff38 100644
--- a/third_party/WebKit/Source/modules/fetch/Response.h
+++ b/third_party/WebKit/Source/modules/fetch/Response.h
@@ -67,7 +67,11 @@ public:
bool hasBody() const;
BodyStreamBuffer* bodyBuffer() override { return m_response->buffer(); }
+ // Returns the BodyStreamBuffer of |m_response|. This method doesn't check
+ // the internal response of |m_response| even if |m_response| has it.
const BodyStreamBuffer* bodyBuffer() const override { return m_response->buffer(); }
+ // Returns the BodyStreamBuffer of the internal response of |m_response| if
+ // any. Otherwise, returns one of |m_response|.
BodyStreamBuffer* internalBodyBuffer() { return m_response->internalBuffer(); }
const BodyStreamBuffer* internalBodyBuffer() const { return m_response->internalBuffer(); }
bool bodyUsed() override;
« no previous file with comments | « third_party/WebKit/Source/modules/fetch/FetchResponseData.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698