summaryrefslogtreecommitdiffstats
path: root/chrome/browser/extensions/extension_dom_ui.cc
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/extensions/extension_dom_ui.cc
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/extensions/extension_dom_ui.cc')
-rw-r--r--chrome/browser/extensions/extension_dom_ui.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/chrome/browser/extensions/extension_dom_ui.cc b/chrome/browser/extensions/extension_dom_ui.cc
index 7d8d15d..40f11f1 100644
--- a/chrome/browser/extensions/extension_dom_ui.cc
+++ b/chrome/browser/extensions/extension_dom_ui.cc
@@ -91,9 +91,13 @@ void ExtensionDOMUI::RenderViewReused(RenderViewHost* render_view_host) {
void ExtensionDOMUI::ProcessDOMUIMessage(const std::string& message,
const Value* content,
+ const GURL& source_url,
int request_id,
bool has_callback) {
- extension_function_dispatcher_->HandleRequest(message, content, request_id,
+ extension_function_dispatcher_->HandleRequest(message,
+ content,
+ source_url,
+ request_id,
has_callback);
}