summaryrefslogtreecommitdiffstats
path: root/webkit/glue/webplugin_impl.h
diff options
context:
space:
mode:
authoriyengar@google.com <iyengar@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-09-24 00:56:42 +0000
committeriyengar@google.com <iyengar@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-09-24 00:56:42 +0000
commit145da81db9a1f299cb0276b7373d9b8b0228ce32 (patch)
treec8758e324919cb109b680bac4e0636992fe6381f /webkit/glue/webplugin_impl.h
parent57d3d0a7f11b0042c9cd01c9124107ffd281cfe3 (diff)
downloadchromium_src-145da81db9a1f299cb0276b7373d9b8b0228ce32.zip
chromium_src-145da81db9a1f299cb0276b7373d9b8b0228ce32.tar.gz
chromium_src-145da81db9a1f299cb0276b7373d9b8b0228ce32.tar.bz2
This fixes the following bugs:-
1. http://code.google.com/p/chromium/issues/detail?id=1473 2. http://code.google.com/p/chromium/issues/detail?id=1533 Our plugin implementation currently sends the containing frame URL as the default referer in HTTP requests initiated by plugins. Based on a discussion on the Plugin futures mailing list, an agreement has been reached to mimic IE behavior and send in the plugin source URL as the default referer in plugin requests. If the plugin is instantiated with an empty SRC, then use the containing frame URL as the referer. Bug=1473,1533 R=jam Review URL: http://codereview.chromium.org/3180 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@2539 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/glue/webplugin_impl.h')
-rw-r--r--webkit/glue/webplugin_impl.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/webkit/glue/webplugin_impl.h b/webkit/glue/webplugin_impl.h
index 2a5efb5..e83427f 100644
--- a/webkit/glue/webplugin_impl.h
+++ b/webkit/glue/webplugin_impl.h
@@ -117,7 +117,7 @@ class WebPluginImpl : public WebPlugin,
friend class WebPluginContainer;
WebPluginImpl(WebCore::Element *element, WebFrameImpl *frame,
- WebPluginDelegate* delegate);
+ WebPluginDelegate* delegate, const GURL& plugin_url);
// WebPlugin implementation:
void SetWindow(HWND window, HANDLE pump_messages_event);
@@ -284,6 +284,9 @@ class WebPluginImpl : public WebPlugin,
// a WebPluginResourceClient instance.
MultiPartResponseHandlerMap multi_part_response_map_;
+ // The plugin source URL.
+ GURL plugin_url_;
+
DISALLOW_EVIL_CONSTRUCTORS(WebPluginImpl);
};