| 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_GLOBAL_ERROR_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_GLOBAL_ERROR_H_ |
| 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_GLOBAL_ERROR_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_GLOBAL_ERROR_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
| 10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| 11 #include "chrome/browser/ui/global_error.h" | 11 #include "chrome/browser/ui/global_error/global_error.h" |
| 12 #include "chrome/common/extensions/extension.h" | 12 #include "chrome/common/extensions/extension.h" |
| 13 | 13 |
| 14 class Browser; | 14 class Browser; |
| 15 class ExtensionService; | 15 class ExtensionService; |
| 16 | 16 |
| 17 // This class encapsulates the UI we want to show users when certain events | 17 // This class encapsulates the UI we want to show users when certain events |
| 18 // occur related to installed extensions. | 18 // occur related to installed extensions. |
| 19 class ExtensionGlobalError : public GlobalError { | 19 class ExtensionGlobalError : public GlobalError { |
| 20 public: | 20 public: |
| 21 explicit ExtensionGlobalError(ExtensionService* extension_service); | 21 explicit ExtensionGlobalError(ExtensionService* extension_service); |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 string16 GenerateMessageSection(const extensions::ExtensionIdSet* extensions, | 69 string16 GenerateMessageSection(const extensions::ExtensionIdSet* extensions, |
| 70 int template_message_id); | 70 int template_message_id); |
| 71 | 71 |
| 72 // Generates the message displayed in the body of the alert. | 72 // Generates the message displayed in the body of the alert. |
| 73 string16 GenerateMessage(); | 73 string16 GenerateMessage(); |
| 74 | 74 |
| 75 DISALLOW_COPY_AND_ASSIGN(ExtensionGlobalError); | 75 DISALLOW_COPY_AND_ASSIGN(ExtensionGlobalError); |
| 76 }; | 76 }; |
| 77 | 77 |
| 78 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_GLOBAL_ERROR_H_ | 78 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_GLOBAL_ERROR_H_ |
| OLD | NEW |