summaryrefslogtreecommitdiffstats
path: root/webkit/glue/webplugin_impl.h
diff options
context:
space:
mode:
Diffstat (limited to 'webkit/glue/webplugin_impl.h')
-rw-r--r--webkit/glue/webplugin_impl.h22
1 files changed, 21 insertions, 1 deletions
diff --git a/webkit/glue/webplugin_impl.h b/webkit/glue/webplugin_impl.h
index 04b48b3..2a5efb5 100644
--- a/webkit/glue/webplugin_impl.h
+++ b/webkit/glue/webplugin_impl.h
@@ -6,6 +6,7 @@
#define WEBKIT_GLUE_WEBPLUGIN_IMPL_H__
#include <string>
+#include <map>
#include <vector>
#include "config.h"
@@ -25,6 +26,7 @@
class WebFrameImpl;
class WebPluginDelegate;
class WebPluginImpl;
+class MultipartResponseDelegate;
namespace WebCore {
class DeprecatedString;
@@ -149,7 +151,8 @@ class WebPluginImpl : public WebPlugin,
// Returns true on success.
bool InitiateHTTPRequest(int resource_id, WebPluginResourceClient* client,
const char* method, const char* buf, int buf_len,
- const GURL& complete_url_string);
+ const GURL& complete_url_string,
+ const char* range_info);
gfx::Rect GetWindowClipRect(const gfx::Rect& rect);
@@ -242,6 +245,17 @@ class WebPluginImpl : public WebPlugin,
bool notify, const char* url,
void* notify_data, bool popups_allowed);
+ void CancelDocumentLoad();
+
+ void InitiateHTTPRangeRequest(const char* url, const char* range_info,
+ HANDLE existing_stream, bool notify_needed,
+ HANDLE notify_data);
+
+ // Handles HTTP multipart responses, i.e. responses received with a HTTP
+ // status code of 206.
+ void HandleHttpMultipartResponse(const WebCore::ResourceResponse& response,
+ WebPluginResourceClient* client);
+
struct ClientInfo {
int id;
WebPluginResourceClient* client;
@@ -264,6 +278,12 @@ class WebPluginImpl : public WebPlugin,
WebPluginContainer* widget_;
+ typedef std::map<WebPluginResourceClient*, MultipartResponseDelegate*>
+ MultiPartResponseHandlerMap;
+ // Tracks HTTP multipart response handlers instantiated for
+ // a WebPluginResourceClient instance.
+ MultiPartResponseHandlerMap multi_part_response_map_;
+
DISALLOW_EVIL_CONSTRUCTORS(WebPluginImpl);
};