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 | 7 |
8 class Browser; | 8 class Browser; |
9 class ExtensionService; | 9 class ExtensionService; |
10 namespace content { | 10 namespace content { |
11 class WebContents; | 11 class WebContents; |
12 } | 12 } |
13 | 13 |
14 namespace extensions { | 14 namespace extensions { |
15 | 15 |
16 class Extension; | 16 class Extension; |
17 | 17 |
18 // Adds a global error to inform the user that an extension was | 18 // Adds a global error to inform the user that an extension was |
19 // disabled after upgrading to higher permissions. | 19 // disabled after upgrading to higher permissions. |
20 void AddExtensionDisabledError(ExtensionService* service, | 20 void AddExtensionDisabledError(ExtensionService* service, |
21 const Extension* extension); | 21 const Extension* extension, |
22 int disable_reasons); | |
not at google - send to devlin
2014/05/01 18:55:21
mention that this is a bitmask of disable reasons
Marijn Kruisselbrink
2014/05/01 22:36:56
Done.
| |
22 | 23 |
23 // Shows the extension install dialog. | 24 // Shows the extension install dialog. |
24 void ShowExtensionDisabledDialog(ExtensionService* service, | 25 void ShowExtensionDisabledDialog(ExtensionService* service, |
25 content::WebContents* web_contents, | 26 content::WebContents* web_contents, |
26 const Extension* extension); | 27 const Extension* extension); |
27 | 28 |
28 } // namespace extensions | 29 } // namespace extensions |
29 | 30 |
30 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_DISABLED_UI_H_ | 31 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_DISABLED_UI_H_ |
OLD | NEW |