OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_EXTENSIONS_EXTENSION_DISABLED_UI_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_DISABLED_UI_H_ |
6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_DISABLED_UI_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_DISABLED_UI_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 class Extension; | |
10 class ExtensionService; | 9 class ExtensionService; |
11 class Profile; | 10 class Profile; |
12 | 11 |
13 namespace extensions { | 12 namespace extensions { |
14 | 13 |
| 14 class Extension; |
| 15 |
15 // Adds a global error to inform the user that an extension was | 16 // Adds a global error to inform the user that an extension was |
16 // disabled after upgrading to higher permissions. | 17 // disabled after upgrading to higher permissions. |
17 void AddExtensionDisabledError(ExtensionService* service, | 18 void AddExtensionDisabledError(ExtensionService* service, |
18 const Extension* extension); | 19 const Extension* extension); |
19 | 20 |
20 // Shows the extension install dialog. | 21 // Shows the extension install dialog. |
21 void ShowExtensionDisabledDialog(ExtensionService* service, Profile* profile, | 22 void ShowExtensionDisabledDialog(ExtensionService* service, Profile* profile, |
22 const Extension* extension); | 23 const Extension* extension); |
23 | 24 |
24 } // namespace extensions | 25 } // namespace extensions |
25 | 26 |
26 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_DISABLED_UI_H_ | 27 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_DISABLED_UI_H_ |
OLD | NEW |