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" |
11 #include "chrome/common/extensions/extension.h" | 11 #include "extensions/common/extension.h" |
12 | 12 |
13 class Browser; | 13 class Browser; |
14 class ExtensionService; | 14 class ExtensionService; |
15 | 15 |
16 // This class encapsulates the UI we want to show users when certain events | 16 // This class encapsulates the UI we want to show users when certain events |
17 // occur related to installed extensions. | 17 // occur related to installed extensions. |
18 class ExtensionErrorUI { | 18 class ExtensionErrorUI { |
19 public: | 19 public: |
20 static ExtensionErrorUI* Create(ExtensionService* extension_service); | 20 static ExtensionErrorUI* Create(ExtensionService* extension_service); |
21 | 21 |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
80 int extension_template_message_id, | 80 int extension_template_message_id, |
81 int app_template_message_id); | 81 int app_template_message_id); |
82 | 82 |
83 // Generates the message displayed in the body of the alert. | 83 // Generates the message displayed in the body of the alert. |
84 string16 GenerateMessage(); | 84 string16 GenerateMessage(); |
85 | 85 |
86 DISALLOW_COPY_AND_ASSIGN(ExtensionErrorUI); | 86 DISALLOW_COPY_AND_ASSIGN(ExtensionErrorUI); |
87 }; | 87 }; |
88 | 88 |
89 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_ERROR_UI_H_ | 89 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_ERROR_UI_H_ |
OLD | NEW |