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

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: Simplifications Created 5 years, 7 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/WebThreadSafeData.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..89d57f7f417295d0a0ace7d2f9b1d03f0cf0242b 100644
--- a/public/platform/WebBlobData.h
+++ b/public/platform/WebBlobData.h
@@ -48,7 +48,7 @@ class BlobData;
class WebBlobData : public WebNonCopyable {
public:
struct Item {
- enum { TypeData, TypeFile, TypeBlob, TypeFileSystemURL } type;
+ enum Type { TypeData, TypeFile, TypeBlob, TypeFileSystemURL } type;
jochen (gone - plz use gerrit) 2015/06/03 10:43:30 why this change?
dmurph 2015/06/03 17:54:30 I would like to be able to reference this enum val
WebThreadSafeData data;
WebString blobUUID;
WebString filePath;
@@ -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/WebThreadSafeData.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698