summaryrefslogtreecommitdiffstats
path: root/content/renderer/render_view.h
diff options
context:
space:
mode:
Diffstat (limited to 'content/renderer/render_view.h')
-rw-r--r--content/renderer/render_view.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/content/renderer/render_view.h b/content/renderer/render_view.h
index 68a12ad..5791ca0 100644
--- a/content/renderer/render_view.h
+++ b/content/renderer/render_view.h
@@ -339,6 +339,21 @@ class RenderView : public RenderWidget,
void RegisterPluginDelegate(WebPluginDelegateProxy* delegate);
void UnregisterPluginDelegate(WebPluginDelegateProxy* delegate);
+ // Helper function to retrieve information about a plugin for a URL and mime
+ // type. Returns false if no plugin was found.
+ // |actual_mime_type| is the actual mime type supported by the
+ // plugin found that match the URL given (one for each item in
+ // |info|).
+ bool GetPluginInfo(const GURL& url,
+ const GURL& page_url,
+ const std::string& mime_type,
+ webkit::WebPluginInfo* plugin_info,
+ std::string* actual_mime_type);
+
+ // Asks the host to create a block of shared memory for the renderer.
+ // The shared memory handle allocated by the host is returned back.
+ base::SharedMemoryHandle HostAllocateSharedMemoryBuffer(uint32 buffer_size);
+
// IPC::Channel::Listener implementation -------------------------------------
virtual bool OnMessageReceived(const IPC::Message& msg);