summaryrefslogtreecommitdiffstats
path: root/chrome/browser/external_protocol_handler.h
diff options
context:
space:
mode:
authorestade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-09-25 20:09:49 +0000
committerestade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-09-25 20:09:49 +0000
commite7eaeddeb5616207ddb404d0fe5344b1dd6f4c80 (patch)
tree7622f285449cccbd2d5a6e65ce574d4bc8d97856 /chrome/browser/external_protocol_handler.h
parent89a8ffc551828c6cce7c5cfa1023d9aee7df8da5 (diff)
downloadchromium_src-e7eaeddeb5616207ddb404d0fe5344b1dd6f4c80.zip
chromium_src-e7eaeddeb5616207ddb404d0fe5344b1dd6f4c80.tar.gz
chromium_src-e7eaeddeb5616207ddb404d0fe5344b1dd6f4c80.tar.bz2
Hook up external protocol handler to user gestures to prevent malicious sites from popping up a lot of dialogs (or in the case of whitelisted protocols, launching a lot of programs).
BUG=3628 TEST=test.html from crbug.com/21049 Review URL: http://codereview.chromium.org/240002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@27237 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/external_protocol_handler.h')
-rw-r--r--chrome/browser/external_protocol_handler.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/chrome/browser/external_protocol_handler.h b/chrome/browser/external_protocol_handler.h
index 5089d2c0..5f3a078 100644
--- a/chrome/browser/external_protocol_handler.h
+++ b/chrome/browser/external_protocol_handler.h
@@ -64,6 +64,9 @@ class ExternalProtocolHandler {
// Prepopulates the dictionary with known protocols to deny or allow, if
// preferences for them do not already exist.
static void PrepopulateDictionary(DictionaryValue* win_pref);
+
+ // Called when the user interacts with a web page.
+ static void OnUserGesture();
};
#endif // CHROME_BROWSER_EXTERNAL_PROTOCOL_HANDLER_H_