Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(26)

Side by Side Diff: chrome/browser/external_protocol_handler.h

Issue 240002: Hook up external protocol handler to user gestures to prevent malicious sites... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/external_protocol_handler.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_EXTERNAL_PROTOCOL_HANDLER_H_ 5 #ifndef CHROME_BROWSER_EXTERNAL_PROTOCOL_HANDLER_H_
6 #define CHROME_BROWSER_EXTERNAL_PROTOCOL_HANDLER_H_ 6 #define CHROME_BROWSER_EXTERNAL_PROTOCOL_HANDLER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 class DictionaryValue; 10 class DictionaryValue;
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 // url has already been escaped, which happens in LaunchUrl. 57 // url has already been escaped, which happens in LaunchUrl.
58 // NOTE: You should Not call this function directly unless you are sure the 58 // NOTE: You should Not call this function directly unless you are sure the
59 // url you have has been checked against the blacklist, and has been escaped. 59 // url you have has been checked against the blacklist, and has been escaped.
60 // All calls to this function should originate in some way from LaunchUrl. 60 // All calls to this function should originate in some way from LaunchUrl.
61 // This will execute on the file thread. 61 // This will execute on the file thread.
62 static void LaunchUrlWithoutSecurityCheck(const GURL& url); 62 static void LaunchUrlWithoutSecurityCheck(const GURL& url);
63 63
64 // Prepopulates the dictionary with known protocols to deny or allow, if 64 // Prepopulates the dictionary with known protocols to deny or allow, if
65 // preferences for them do not already exist. 65 // preferences for them do not already exist.
66 static void PrepopulateDictionary(DictionaryValue* win_pref); 66 static void PrepopulateDictionary(DictionaryValue* win_pref);
67
68 // Called when the user interacts with a web page.
69 static void OnUserGesture();
67 }; 70 };
68 71
69 #endif // CHROME_BROWSER_EXTERNAL_PROTOCOL_HANDLER_H_ 72 #endif // CHROME_BROWSER_EXTERNAL_PROTOCOL_HANDLER_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/external_protocol_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698