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

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 feedback on tests. 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
Index: Source/core/fileapi/BlobBuilder.h
diff --git a/Source/core/fileapi/BlobBuilder.h b/Source/core/fileapi/BlobBuilder.h
index 560a79c8d1ea8825e809f2858a9aee960a176d7f..ff7013f7054be5a319f671673413a2c11216b1c0 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:
@@ -54,6 +49,7 @@ public:
void append(ArrayBufferView*);
PassRefPtr<Blob> getBlob(const String& contentType);
+ PassRefPtr<File> getFile(const String& contentType, const String& fileName, double modificationTime);
Inactive 2013/11/05 00:38:48 I agree with esprehn that getBlob() / getFile() is
pwnall-personal 2013/11/05 01:14:23 Done. I renamed get{Blob, File} to create{Blob, Fi
kinuko 2013/11/05 11:20:28 Right, there's no reason to keep this class any mo
private:
void appendBytesData(const void*, size_t);

Powered by Google App Engine
This is Rietveld 408576698