OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_EXTERNAL_PROTOCOL_HANDLER_H_ | 5 #ifndef CHROME_BROWSER_EXTERNAL_PROTOCOL_EXTERNAL_PROTOCOL_HANDLER_H_ |
6 #define CHROME_BROWSER_EXTERNAL_PROTOCOL_EXTERNAL_PROTOCOL_HANDLER_H_ | 6 #define CHROME_BROWSER_EXTERNAL_PROTOCOL_EXTERNAL_PROTOCOL_HANDLER_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "chrome/browser/shell_integration.h" | 10 #include "apps/shell_integration.h" |
11 | 11 |
12 class GURL; | 12 class GURL; |
13 class PrefRegistrySimple; | 13 class PrefRegistrySimple; |
14 | 14 |
15 namespace base { | 15 namespace base { |
16 class DictionaryValue; | 16 class DictionaryValue; |
17 } | 17 } |
18 | 18 |
19 class ExternalProtocolHandler { | 19 class ExternalProtocolHandler { |
20 public: | 20 public: |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
96 static void PrepopulateDictionary(base::DictionaryValue* win_pref); | 96 static void PrepopulateDictionary(base::DictionaryValue* win_pref); |
97 | 97 |
98 // Allows LaunchUrl to proceed with launching an external protocol handler. | 98 // Allows LaunchUrl to proceed with launching an external protocol handler. |
99 // This is typically triggered by a user gesture, but is also called for | 99 // This is typically triggered by a user gesture, but is also called for |
100 // each extension API function. Note that each call to LaunchUrl resets | 100 // each extension API function. Note that each call to LaunchUrl resets |
101 // the state to false (not allowed). | 101 // the state to false (not allowed). |
102 static void PermitLaunchUrl(); | 102 static void PermitLaunchUrl(); |
103 }; | 103 }; |
104 | 104 |
105 #endif // CHROME_BROWSER_EXTERNAL_PROTOCOL_EXTERNAL_PROTOCOL_HANDLER_H_ | 105 #endif // CHROME_BROWSER_EXTERNAL_PROTOCOL_EXTERNAL_PROTOCOL_HANDLER_H_ |
OLD | NEW |