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

Unified Diff: public/platform/WebBlobData.h

Issue 1162773003: [Blob] Dependencies for blob storage testing (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Added build() method Created 5 years, 6 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 | « Source/platform/exported/WebThreadSafeData.cpp ('k') | public/platform/WebBlobRegistry.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: public/platform/WebBlobData.h
diff --git a/public/platform/WebBlobData.h b/public/platform/WebBlobData.h
index fd92dffcf33d603322079a7615972e068a625ab8..98136cef8284e85619fa57cbbd614c717a8a0e66 100644
--- a/public/platform/WebBlobData.h
+++ b/public/platform/WebBlobData.h
@@ -68,6 +68,10 @@ public:
// Retrieves the values of the item at the given index. Returns false if
// index is out of bounds.
+ // This call is single use only per index. The memory ownership is
+ // transfered to the result in the case of memory items. A second call with
+ // the same index will result in null data.
+ // TODO(dmurph): change the name to 'takeItemAt'
BLINK_PLATFORM_EXPORT bool itemAt(size_t index, Item& result) const;
BLINK_PLATFORM_EXPORT WebString contentType() const;
« no previous file with comments | « Source/platform/exported/WebThreadSafeData.cpp ('k') | public/platform/WebBlobRegistry.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698