Index: content/browser/streams/stream.h |
diff --git a/content/browser/streams/stream.h b/content/browser/streams/stream.h |
index 912e4374e6a9e6b49f90d6d14c3384ce71e74401..558873f9bc431163c38464e72178659908389ec5 100644 |
--- a/content/browser/streams/stream.h |
+++ b/content/browser/streams/stream.h |
@@ -56,6 +56,9 @@ class CONTENT_EXPORT Stream : public base::RefCountedThreadSafe<Stream> { |
// Adds the data in |buffer| to the stream. Takes ownership of |buffer|. |
void AddData(scoped_refptr<net::IOBuffer> buffer, size_t size); |
+ // Adds data of |size| at |data| to the stream. This method creates a copy |
+ // of the data, and then passes it to |writer_|. |
+ void AddData(const char* data, size_t size); |
// Notifies this stream that it will not be receiving any more data. |
void Finalize(); |