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

Unified Diff: webkit/glue/webplugin_impl.h

Issue 14122: Handle HTTP 200 responses received in response to byte range requests issued... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 12 years 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.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 7063)
+++ webkit/glue/webplugin_impl.h (working copy)
@@ -124,7 +124,8 @@
WebCore::Element* element,
WebFrameImpl* frame,
WebPluginDelegate* delegate,
- bool load_manually);
+ bool load_manually,
+ const std::string& mime_type);
virtual ~WebPluginImpl();
virtual NPObject* GetPluginScriptableObject();
@@ -139,7 +140,8 @@
WebPluginImpl(WebCore::Element *element, WebFrameImpl *frame,
WebPluginDelegate* delegate, const GURL& plugin_url,
- bool load_manually);
+ bool load_manually, const std::string& mime_type,
+ int arg_count, char** arg_names, char** arg_values);
// WebPlugin implementation:
void SetWindow(HWND window, HANDLE pump_messages_event);
@@ -231,6 +233,12 @@
// Sets the actual Widget for the plugin.
void SetContainer(WebPluginContainer* container);
+ // Destroys the plugin instance.
+ // The response_handle_to_ignore parameter if not NULL indicates the
+ // resource handle to be left valid during plugin shutdown.
+ void TearDownPluginInstance(
+ WebCore::ResourceHandle* response_handle_to_ignore);
+
WebCore::ScrollView* parent() const;
// ResourceHandleClient implementation. We implement this interface in the
@@ -294,6 +302,14 @@
void* notify_data, bool popups_allowed,
bool use_plugin_src_as_referrer);
+ // Tears down the existing plugin instance and creates a new plugin instance
+ // to handle the response identified by the response_handle parameter.
+ bool ReinitializePluginForResponse(WebCore::ResourceHandle* response_handle);
+
+ // Helper functions to convert an array of names/values to a vector.
+ static void ArrayToVector(int total_values, char** values,
+ std::vector<std::string>* value_vector);
+
struct ClientInfo {
int id;
WebPluginResourceClient* client;
@@ -332,6 +348,15 @@
// Indicates if this is the first geometry update received by the plugin.
bool first_geometry_update_;
+ // The mime type of the plugin.
+ std::string mime_type_;
+
+ // Holds the list of argument names passed to the plugin.
+ std::vector<std::string> arg_names_;
+
+ // Holds the list of argument values passed to the plugin.
+ std::vector<std::string> arg_values_;
+
DISALLOW_COPY_AND_ASSIGN(WebPluginImpl);
};
« no previous file with comments | « webkit/glue/webplugin.h ('k') | webkit/glue/webplugin_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698