| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| 11 class DictionaryValue; | 11 class DictionaryValue; |
| 12 class GURL; | 12 class GURL; |
| 13 class MessageLoop; | |
| 14 class PrefService; | 13 class PrefService; |
| 15 | 14 |
| 16 class ExternalProtocolHandler { | 15 class ExternalProtocolHandler { |
| 17 public: | 16 public: |
| 18 enum BlockState { | 17 enum BlockState { |
| 19 DONT_BLOCK, | 18 DONT_BLOCK, |
| 20 BLOCK, | 19 BLOCK, |
| 21 UNKNOWN, | 20 UNKNOWN, |
| 22 }; | 21 }; |
| 23 | 22 |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 static void PrepopulateDictionary(DictionaryValue* win_pref); | 69 static void PrepopulateDictionary(DictionaryValue* win_pref); |
| 71 | 70 |
| 72 // Allows LaunchUrl to proceed with launching an external protocol handler. | 71 // Allows LaunchUrl to proceed with launching an external protocol handler. |
| 73 // This is typically triggered by a user gesture, but is also called for | 72 // This is typically triggered by a user gesture, but is also called for |
| 74 // each extension API function. Note that each call to LaunchUrl resets | 73 // each extension API function. Note that each call to LaunchUrl resets |
| 75 // the state to false (not allowed). | 74 // the state to false (not allowed). |
| 76 static void PermitLaunchUrl(); | 75 static void PermitLaunchUrl(); |
| 77 }; | 76 }; |
| 78 | 77 |
| 79 #endif // CHROME_BROWSER_EXTERNAL_PROTOCOL_HANDLER_H_ | 78 #endif // CHROME_BROWSER_EXTERNAL_PROTOCOL_HANDLER_H_ |
| OLD | NEW |