| 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_ERROR_UI_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_ERROR_UI_H_ |
| 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_ERROR_UI_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_ERROR_UI_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
| 10 #include "chrome/browser/ui/global_error/global_error.h" | 10 #include "chrome/browser/ui/global_error/global_error.h" |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 bool should_delete_self_on_close_; | 72 bool should_delete_self_on_close_; |
| 73 ExtensionService* extension_service_; | 73 ExtensionService* extension_service_; |
| 74 scoped_ptr<extensions::ExtensionIdSet> external_extension_ids_; | 74 scoped_ptr<extensions::ExtensionIdSet> external_extension_ids_; |
| 75 scoped_ptr<extensions::ExtensionIdSet> blacklisted_extension_ids_; | 75 scoped_ptr<extensions::ExtensionIdSet> blacklisted_extension_ids_; |
| 76 scoped_ptr<extensions::ExtensionIdSet> orphaned_extension_ids_; | 76 scoped_ptr<extensions::ExtensionIdSet> orphaned_extension_ids_; |
| 77 string16 message_; // Displayed in the body of the alert. | 77 string16 message_; // Displayed in the body of the alert. |
| 78 | 78 |
| 79 // For a given set of extension IDs, generates appropriate text | 79 // For a given set of extension IDs, generates appropriate text |
| 80 // describing what the user needs to know about them. | 80 // describing what the user needs to know about them. |
| 81 string16 GenerateMessageSection(const extensions::ExtensionIdSet* extensions, | 81 string16 GenerateMessageSection(const extensions::ExtensionIdSet* extensions, |
| 82 int template_message_id); | 82 int extension_template_message_id, |
| 83 int app_template_message_id); |
| 83 | 84 |
| 84 // Generates the message displayed in the body of the alert. | 85 // Generates the message displayed in the body of the alert. |
| 85 string16 GenerateMessage(); | 86 string16 GenerateMessage(); |
| 86 | 87 |
| 87 DISALLOW_COPY_AND_ASSIGN(ExtensionErrorUI); | 88 DISALLOW_COPY_AND_ASSIGN(ExtensionErrorUI); |
| 88 }; | 89 }; |
| 89 | 90 |
| 90 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_ERROR_UI_H_ | 91 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_ERROR_UI_H_ |
| OLD | NEW |