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

Unified Diff: Source/core/fileapi/BlobBuilder.h

Issue 57483002: Implement File constructor. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Addressed most feedback. Created 7 years, 1 month 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/core/fileapi/Blob.cpp ('k') | Source/core/fileapi/BlobBuilder.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/fileapi/BlobBuilder.h
diff --git a/Source/core/fileapi/BlobBuilder.h b/Source/core/fileapi/BlobBuilder.h
index 560a79c8d1ea8825e809f2858a9aee960a176d7f..cdf3cc562a93b2409e8d8336b0bc24a4fb90462d 100644
--- a/Source/core/fileapi/BlobBuilder.h
+++ b/Source/core/fileapi/BlobBuilder.h
@@ -34,15 +34,10 @@
#include "platform/blob/BlobData.h"
#include "wtf/Forward.h"
-namespace WTF{
-class TextEncoding;
-}
-
namespace WebCore {
class Blob;
-
-typedef int ExceptionCode;
+class File;
class BlobBuilder {
public:
@@ -53,7 +48,8 @@ public:
void append(ArrayBuffer*);
void append(ArrayBufferView*);
- PassRefPtr<Blob> getBlob(const String& contentType);
+ PassRefPtr<Blob> createBlob(const String& contentType);
+ PassRefPtr<File> createFile(const String& contentType, const String& fileName, double modificationTime);
private:
void appendBytesData(const void*, size_t);
« no previous file with comments | « Source/core/fileapi/Blob.cpp ('k') | Source/core/fileapi/BlobBuilder.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698