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

Unified Diff: webkit/glue/webplugin_impl.h

Issue 2896: This CB fixes the following issues:-... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 12 years, 3 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 | « webkit/glue/webplugin_delegate.h ('k') | webkit/glue/webplugin_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/glue/webplugin_impl.h
===================================================================
--- webkit/glue/webplugin_impl.h (revision 2387)
+++ webkit/glue/webplugin_impl.h (working copy)
@@ -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 @@
// 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 @@
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 @@
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);
};
« no previous file with comments | « webkit/glue/webplugin_delegate.h ('k') | webkit/glue/webplugin_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698