[email protected] | edb6e77 | 2012-03-22 00:58:03 | [diff] [blame] | 1 | // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
[email protected] | 0c6da50 | 2009-08-14 22:32:39 | [diff] [blame] | 2 | // Use of this source code is governed by a BSD-style license that can be |
3 | // found in the LICENSE file. | ||||
4 | |||||
[email protected] | edb6e77 | 2012-03-22 00:58:03 | [diff] [blame] | 5 | #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_DISABLED_UI_H_ |
6 | #define CHROME_BROWSER_EXTENSIONS_EXTENSION_DISABLED_UI_H_ | ||||
[email protected] | 0c6da50 | 2009-08-14 22:32:39 | [diff] [blame] | 7 | |
[email protected] | 32fc4ff7 | 2012-06-15 21:50:01 | [diff] [blame] | 8 | class Browser; |
[email protected] | eaa7dd18 | 2010-12-14 11:09:00 | [diff] [blame] | 9 | class ExtensionService; |
[email protected] | 91e51d61 | 2012-10-21 23:03:05 | [diff] [blame] | 10 | namespace content { |
11 | class WebContents; | ||||
12 | } | ||||
[email protected] | 0c6da50 | 2009-08-14 22:32:39 | [diff] [blame] | 13 | |
[email protected] | edb6e77 | 2012-03-22 00:58:03 | [diff] [blame] | 14 | namespace extensions { |
15 | |||||
[email protected] | 1c321ee5 | 2012-05-21 03:02:34 | [diff] [blame] | 16 | class Extension; |
17 | |||||
[email protected] | 62f051c | 2012-03-29 17:04:44 | [diff] [blame] | 18 | // Adds a global error to inform the user that an extension was |
19 | // disabled after upgrading to higher permissions. | ||||
20 | void AddExtensionDisabledError(ExtensionService* service, | ||||
21 | const Extension* extension); | ||||
[email protected] | 0c6da50 | 2009-08-14 22:32:39 | [diff] [blame] | 22 | |
[email protected] | 7d84586 | 2010-01-04 21:28:57 | [diff] [blame] | 23 | // Shows the extension install dialog. |
[email protected] | 91e51d61 | 2012-10-21 23:03:05 | [diff] [blame] | 24 | void ShowExtensionDisabledDialog(ExtensionService* service, |
25 | content::WebContents* web_contents, | ||||
[email protected] | 9adb969 | 2010-10-29 23:14:02 | [diff] [blame] | 26 | const Extension* extension); |
[email protected] | 7d84586 | 2010-01-04 21:28:57 | [diff] [blame] | 27 | |
[email protected] | edb6e77 | 2012-03-22 00:58:03 | [diff] [blame] | 28 | } // namespace extensions |
29 | |||||
30 | #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_DISABLED_UI_H_ |