summaryrefslogtreecommitdiffstats
path: root/webkit/glue/multipart_response_delegate.h
diff options
context:
space:
mode:
Diffstat (limited to 'webkit/glue/multipart_response_delegate.h')
-rw-r--r--webkit/glue/multipart_response_delegate.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/webkit/glue/multipart_response_delegate.h b/webkit/glue/multipart_response_delegate.h
index f5b8109..e7c1ba4 100644
--- a/webkit/glue/multipart_response_delegate.h
+++ b/webkit/glue/multipart_response_delegate.h
@@ -72,6 +72,19 @@ class MultipartResponseDelegate {
void OnReceivedData(const char* data, int data_len);
void OnCompletedRequest();
+ // Returns the multi part boundary string from the Content-type header
+ // in the response.
+ // Returns true on success.
+ static bool ReadMultipartBoundary(const WebCore::ResourceResponse& response,
+ std::string* multipart_boundary);
+
+ // Returns the lower and higher content ranges from an individual multipart
+ // in a multipart response.
+ // Returns true on success.
+ static bool ReadContentRanges(const WebCore::ResourceResponse& response,
+ int* content_range_lower_bound,
+ int* content_range_upper_bound);
+
private:
// Pointers back to our owning object so we can make callbacks as we parse
// pieces of data.