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

Unified Diff: content/child/npapi/webplugin_delegate.h

Issue 23503043: Load NPAPI plugin resources through the browser process directly instead of going through the render (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: sync Created 7 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
Index: content/child/npapi/webplugin_delegate.h
===================================================================
--- content/child/npapi/webplugin_delegate.h (revision 222566)
+++ content/child/npapi/webplugin_delegate.h (working copy)
@@ -28,7 +28,6 @@
namespace content {
-class WebPlugin;
class WebPluginResourceClient;
// This is the interface that a plugin implementation needs to provide.
@@ -48,7 +47,6 @@
virtual bool Initialize(const GURL& url,
const std::vector<std::string>& arg_names,
const std::vector<std::string>& arg_values,
- WebPlugin* plugin,
bool load_manually) = 0;
// Called when the WebPlugin is being destroyed. This is a signal to the
@@ -129,6 +127,22 @@
// has become seekable.
virtual WebPluginResourceClient* CreateSeekableResourceClient(
unsigned long resource_id, int range_request_id) = 0;
+
+ // Tell the plugin that the given URL should be fetched. This is a result of
+ // loading the plugin data or the plugin calling HandleURLRequest which didn't
+ // end up being routed to another frame or being a javscript:// URL.
+ virtual void FetchURL(unsigned long resource_id,
+ int notify_id,
+ const GURL& url,
+ const GURL& first_party_for_cookies,
+ const std::string& method,
+ const std::string& post_data,
+ const GURL& referrer,
+ bool notify_redirects,
+ bool is_plugin_src_load,
+ int origin_pid,
+ int render_view_id) = 0;
+
};
} // namespace content

Powered by Google App Engine
This is Rietveld 408576698