Chromium Code Reviews| 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; |