| Index: content/child/npapi/webplugin_delegate_impl.h
|
| ===================================================================
|
| --- content/child/npapi/webplugin_delegate_impl.h (revision 222566)
|
| +++ content/child/npapi/webplugin_delegate_impl.h (working copy)
|
| @@ -41,8 +41,9 @@
|
| #endif
|
|
|
| namespace content {
|
| -
|
| class PluginInstance;
|
| +class PluginURLFetcher;
|
| +class WebPlugin;
|
|
|
| #if defined(OS_MACOSX)
|
| class WebPluginAcceleratedSurface;
|
| @@ -77,14 +78,14 @@
|
| PLUGIN_QUIRK_EMULATE_IME = 131072, // Windows.
|
| };
|
|
|
| - static WebPluginDelegateImpl* Create(const base::FilePath& filename,
|
| + static WebPluginDelegateImpl* Create(WebPlugin* plugin,
|
| + const base::FilePath& filename,
|
| const std::string& mime_type);
|
|
|
| // WebPluginDelegate implementation
|
| 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) OVERRIDE;
|
| virtual void PluginDestroyed() OVERRIDE;
|
| virtual void UpdateGeometry(const gfx::Rect& window_rect,
|
| @@ -116,6 +117,17 @@
|
| unsigned long resource_id, const GURL& url, int notify_id) OVERRIDE;
|
| virtual WebPluginResourceClient* CreateSeekableResourceClient(
|
| unsigned long resource_id, int range_request_id) OVERRIDE;
|
| + 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) OVERRIDE;
|
| // End of WebPluginDelegate implementation.
|
|
|
| gfx::PluginWindowHandle windowed_handle() const { return windowed_handle_; }
|
| @@ -193,7 +205,7 @@
|
| friend class base::DeleteHelper<WebPluginDelegateImpl>;
|
| friend class WebPluginDelegate;
|
|
|
| - explicit WebPluginDelegateImpl(PluginInstance* instance);
|
| + WebPluginDelegateImpl(WebPlugin* plugin, PluginInstance* instance);
|
| virtual ~WebPluginDelegateImpl();
|
|
|
| // Called by Initialize() for platform-specific initialization.
|
|
|