Index: content/public/common/frame_navigate_params.h |
diff --git a/content/public/common/frame_navigate_params.h b/content/public/common/frame_navigate_params.h |
index f3f686c9211d7f18bf33ebdd4b8f1e79dfb2397d..93143f61005162dbf0df93ac903536758463fc88 100644 |
--- a/content/public/common/frame_navigate_params.h |
+++ b/content/public/common/frame_navigate_params.h |
@@ -17,6 +17,29 @@ |
namespace content { |
+// Each WebHTTPPOSTBodyParams struct is for an element in the WebHTTPBody. |
+struct CONTENT_EXPORT WebHTTPPOSTBodyParams { |
+ WebHTTPPOSTBodyParams(); |
+ ~WebHTTPPOSTBodyParams(); |
+ |
+ std::string method; |
+ enum Type { TypeData, TypeFile, TypeBlob, TypeURL } type; |
+ |
+ std::string data; |
+ std::string filePath; |
+ long long fileStart; |
+ long long fileLength; // -1 means to the end of the file. |
+ double modificationTime; |
+ |
+ // TODO:Do not clear how to use this field |
+ GURL url; // For TypeBlob or TypeURL. |
+ //WebURL blobURL; |
+ |
+ // To pass HTTP Header Info |
+ // TODO: Will Move to a new struct only for headers |
michaeln
2012/10/23 23:22:18
Move the |method| data member too?
|
+ std::string ContentType; |
+}; |
+ |
// Struct used by WebContentsObserver. |
struct CONTENT_EXPORT FrameNavigateParams { |
FrameNavigateParams(); |