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

Unified Diff: public/platform/WebHTTPBody.h

Issue 23703003: Couple of minor changes to the WebKitAPI. This is a small step in a larger work-in-progress. See th… (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 4 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 | « public/platform/WebFileWriter.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: public/platform/WebHTTPBody.h
diff --git a/public/platform/WebHTTPBody.h b/public/platform/WebHTTPBody.h
index 13bf5fed117401a591fe2ef16030188449a6674f..ae51b45530b366ab6e7be40d4165d59b03de0ca2 100644
--- a/public/platform/WebHTTPBody.h
+++ b/public/platform/WebHTTPBody.h
@@ -48,16 +48,21 @@ class WebHTTPBodyPrivate;
class WebHTTPBody {
public:
struct Element {
- enum Type { TypeData, TypeFile, TypeBlob, TypeURL } type;
+ // TypeURL is DEPRECATED
+ enum Type { TypeData, TypeFile, TypeBlob, TypeFileSystemURL, TypeURL = TypeFileSystemURL } type;
WebData data;
WebString filePath;
long long fileStart;
long long fileLength; // -1 means to the end of the file.
double modificationTime;
- WebURL url; // For TypeBlob or TypeURL.
+ WebURL fileSystemURL;
- // FIXME: deprecate this.
+ // DEPRECATED, use fileSystemURL
+ WebURL url;
+
+ // FIXME: deprecate url and use uuid
WebURL blobURL;
+ WebString blobUUID;
};
~WebHTTPBody() { reset(); }
@@ -88,10 +93,11 @@ public:
WEBKIT_EXPORT void appendFile(const WebString&);
// Passing -1 to fileLength means to the end of the file.
WEBKIT_EXPORT void appendFileRange(const WebString&, long long fileStart, long long fileLength, double modificationTime);
- WEBKIT_EXPORT void appendBlob(const WebURL&);
+ WEBKIT_EXPORT void appendBlob(const WebURL&); // FIXME: deprecate this
- // Append a resource which is identified by URL. Currently we only support FileSystem URL.
- WEBKIT_EXPORT void appendURLRange(const WebURL&, long long start, long long length, double modificationTime);
+ // Append a resource which is identified by the FileSystem URL.
+ WEBKIT_EXPORT void appendFileSystemURLRange(const WebURL&, long long start, long long length, double modificationTime);
+ WEBKIT_EXPORT void appendURLRange(const WebURL&, long long start, long long length, double modificationTime); // DEPRECATED
// Identifies a particular form submission instance. A value of 0 is
// used to indicate an unspecified identifier.
« no previous file with comments | « public/platform/WebFileWriter.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698