diff options
author | pkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-05-05 20:00:22 +0000 |
---|---|---|
committer | pkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-05-05 20:00:22 +0000 |
commit | c88a70fe5a69daf5d3d6e0599ed273d160b55c41 (patch) | |
tree | b0c2303575c6f9d5f6d42e1716fbdc5decdd139e /chrome/browser/extensions | |
parent | 0302e4ac5907fcdaafbf2a883b29496032c0db19 (diff) | |
download | chromium_src-c88a70fe5a69daf5d3d6e0599ed273d160b55c41.zip chromium_src-c88a70fe5a69daf5d3d6e0599ed273d160b55c41.tar.gz chromium_src-c88a70fe5a69daf5d3d6e0599ed273d160b55c41.tar.bz2 |
Plumb the creator URL for popups up to the browser. We don't yet use this for anything; it will be used for whitelisting popups by hostname.
BUG=11440
Review URL: http://codereview.chromium.org/105004
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@15326 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/extensions')
-rwxr-xr-x | chrome/browser/extensions/extension_host.cc | 3 | ||||
-rwxr-xr-x | chrome/browser/extensions/extension_host.h | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/chrome/browser/extensions/extension_host.cc b/chrome/browser/extensions/extension_host.cc index 4e5f615a..7f6bd01 100755 --- a/chrome/browser/extensions/extension_host.cc +++ b/chrome/browser/extensions/extension_host.cc @@ -124,7 +124,8 @@ void ExtensionHost::CreateNewWidget(int route_id, bool activatable) { void ExtensionHost::ShowCreatedWindow(int route_id, WindowOpenDisposition disposition, const gfx::Rect& initial_pos, - bool user_gesture) { + bool user_gesture, + const GURL& creator_url) { TabContents* contents = delegate_view_helper_.GetCreatedWindow(route_id); if (contents) { // TODO(erikkay) is it safe to pass in NULL as source? diff --git a/chrome/browser/extensions/extension_host.h b/chrome/browser/extensions/extension_host.h index 9e90522..6a80cb4 100755 --- a/chrome/browser/extensions/extension_host.h +++ b/chrome/browser/extensions/extension_host.h @@ -63,7 +63,8 @@ class ExtensionHost : public RenderViewHostDelegate, virtual void ShowCreatedWindow(int route_id, WindowOpenDisposition disposition, const gfx::Rect& initial_pos, - bool user_gesture); + bool user_gesture, + const GURL& creator_url); virtual void ShowCreatedWidget(int route_id, const gfx::Rect& initial_pos); virtual void ShowContextMenu(const ContextMenuParams& params); |