Index: content/browser/streams/stream.h |
diff --git a/content/browser/streams/stream.h b/content/browser/streams/stream.h |
index 912e4374e6a9e6b49f90d6d14c3384ce71e74401..c6fd85fca92b31e3344a4618f88ec30684f40121 100644 |
--- a/content/browser/streams/stream.h |
+++ b/content/browser/streams/stream.h |
@@ -56,6 +56,8 @@ 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. |
kinuko
2013/07/23 13:57:23
nit: can you explicitly comment this copies |data|
tyoshino (SeeGerritForStatus)
2013/07/24 12:14:20
Done.
|
+ void AddData(const char* data, size_t size); |
// Notifies this stream that it will not be receiving any more data. |
void Finalize(); |
@@ -75,6 +77,9 @@ class CONTENT_EXPORT Stream : public base::RefCountedThreadSafe<Stream> { |
const GURL& url() const { return url_; } |
+ // TODO(tyoshino): Once security origin handling inside Chromium is fixed, |
+ // revisit callers of the Stream constructor and fix them if necessary to |
+ // pass right data (e.g. FileAPIMessageFilter). (crbug.com/263342) |
const GURL& security_origin() const { return security_origin_; } |
private: |