OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_ERROR_CONSOLE_ERROR_CONSOLE_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_ERROR_CONSOLE_ERROR_CONSOLE_H_ |
6 #define CHROME_BROWSER_EXTENSIONS_ERROR_CONSOLE_ERROR_CONSOLE_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_ERROR_CONSOLE_ERROR_CONSOLE_H_ |
7 | 7 |
8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
9 #include "base/observer_list.h" | 9 #include "base/observer_list.h" |
10 #include "base/prefs/pref_change_registrar.h" | 10 #include "base/prefs/pref_change_registrar.h" |
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
126 | 126 |
127 // ExtensionRegistry implementation. If the Apps Developer Tools app is | 127 // ExtensionRegistry implementation. If the Apps Developer Tools app is |
128 // installed or uninstalled, we may need to turn the ErrorConsole on/off. | 128 // installed or uninstalled, we may need to turn the ErrorConsole on/off. |
129 virtual void OnExtensionUnloaded( | 129 virtual void OnExtensionUnloaded( |
130 content::BrowserContext* browser_context, | 130 content::BrowserContext* browser_context, |
131 const Extension* extension, | 131 const Extension* extension, |
132 UnloadedExtensionInfo::Reason reason) OVERRIDE; | 132 UnloadedExtensionInfo::Reason reason) OVERRIDE; |
133 virtual void OnExtensionLoaded(content::BrowserContext* browser_context, | 133 virtual void OnExtensionLoaded(content::BrowserContext* browser_context, |
134 const Extension* extension) OVERRIDE; | 134 const Extension* extension) OVERRIDE; |
135 virtual void OnExtensionInstalled(content::BrowserContext* browser_context, | 135 virtual void OnExtensionInstalled(content::BrowserContext* browser_context, |
136 const Extension* extension) OVERRIDE; | 136 const Extension* extension, |
| 137 bool is_update) OVERRIDE; |
137 virtual void OnExtensionUninstalled(content::BrowserContext* browser_context, | 138 virtual void OnExtensionUninstalled(content::BrowserContext* browser_context, |
138 const Extension* extension) OVERRIDE; | 139 const Extension* extension) OVERRIDE; |
139 | 140 |
140 // Add manifest errors from an extension's install warnings. | 141 // Add manifest errors from an extension's install warnings. |
141 void AddManifestErrorsForExtension(const Extension* extension); | 142 void AddManifestErrorsForExtension(const Extension* extension); |
142 | 143 |
143 // content::NotificationObserver implementation. | 144 // content::NotificationObserver implementation. |
144 virtual void Observe(int type, | 145 virtual void Observe(int type, |
145 const content::NotificationSource& source, | 146 const content::NotificationSource& source, |
146 const content::NotificationDetails& details) OVERRIDE; | 147 const content::NotificationDetails& details) OVERRIDE; |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
182 | 183 |
183 ScopedObserver<ExtensionRegistry, ExtensionRegistryObserver> | 184 ScopedObserver<ExtensionRegistry, ExtensionRegistryObserver> |
184 registry_observer_; | 185 registry_observer_; |
185 | 186 |
186 DISALLOW_COPY_AND_ASSIGN(ErrorConsole); | 187 DISALLOW_COPY_AND_ASSIGN(ErrorConsole); |
187 }; | 188 }; |
188 | 189 |
189 } // namespace extensions | 190 } // namespace extensions |
190 | 191 |
191 #endif // CHROME_BROWSER_EXTENSIONS_ERROR_CONSOLE_ERROR_CONSOLE_H_ | 192 #endif // CHROME_BROWSER_EXTENSIONS_ERROR_CONSOLE_ERROR_CONSOLE_H_ |
OLD | NEW |