summaryrefslogtreecommitdiffstats
path: root/chrome/browser/notifications
diff options
context:
space:
mode:
authorrafaelw@chromium.org <rafaelw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-04-02 21:01:39 +0000
committerrafaelw@chromium.org <rafaelw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-04-02 21:01:39 +0000
commitbb64b5128f1641cba1e802ae7d0768be955ffdc5 (patch)
tree155aa1198f32f57dbdce887dd49a0d7b892fd283 /chrome/browser/notifications
parentdb163f8b20b0a6c512e1ad21bab9af15a8c9c218 (diff)
downloadchromium_src-bb64b5128f1641cba1e802ae7d0768be955ffdc5.zip
chromium_src-bb64b5128f1641cba1e802ae7d0768be955ffdc5.tar.gz
chromium_src-bb64b5128f1641cba1e802ae7d0768be955ffdc5.tar.bz2
Add calling frame's source_url to extension and dom ui requests.
Additionally, in the extension and tabs api, compute & report UMA histogram data for relative URL use in API calls so we can decide if it's possible to change the behavior of relative url resolution to use the calling frame's url rather than the extension's base url. Review URL: http://codereview.chromium.org/1605005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@43523 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/notifications')
-rw-r--r--chrome/browser/notifications/balloon_host.cc3
-rw-r--r--chrome/browser/notifications/balloon_host.h1
2 files changed, 3 insertions, 1 deletions
diff --git a/chrome/browser/notifications/balloon_host.cc b/chrome/browser/notifications/balloon_host.cc
index 9e9ba28..19414a0 100644
--- a/chrome/browser/notifications/balloon_host.cc
+++ b/chrome/browser/notifications/balloon_host.cc
@@ -81,11 +81,12 @@ void BalloonHost::RendererGone(RenderViewHost* render_view_host) {
void BalloonHost::ProcessDOMUIMessage(const std::string& message,
const Value* content,
+ const GURL& source_url,
int request_id,
bool has_callback) {
if (extension_function_dispatcher_.get()) {
extension_function_dispatcher_->HandleRequest(
- message, content, request_id, has_callback);
+ message, content, source_url, request_id, has_callback);
}
}
diff --git a/chrome/browser/notifications/balloon_host.h b/chrome/browser/notifications/balloon_host.h
index 42cd0e0..8cc397c 100644
--- a/chrome/browser/notifications/balloon_host.h
+++ b/chrome/browser/notifications/balloon_host.h
@@ -67,6 +67,7 @@ class BalloonHost : public RenderViewHostDelegate,
}
virtual void ProcessDOMUIMessage(const std::string& message,
const Value* content,
+ const GURL& source_url,
int request_id,
bool has_callback);