| OLD | NEW |
| 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 Loading... |
| 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_ |
| OLD | NEW |