Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(570)

Side by Side Diff: chrome/browser/extensions/error_console/error_console.h

Issue 398083002: Add "UninstallReason" parameter to ExtensionRegistryObserver::OnExtensionUninstalled. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix header file. Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
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, 136 const Extension* extension,
137 bool is_update) OVERRIDE; 137 bool is_update) OVERRIDE;
138 virtual void OnExtensionUninstalled(content::BrowserContext* browser_context, 138 virtual void OnExtensionUninstalled(
139 const Extension* extension) OVERRIDE; 139 content::BrowserContext* browser_context,
140 const Extension* extension,
141 extensions::UninstallReason reason) OVERRIDE;
140 142
141 // Add manifest errors from an extension's install warnings. 143 // Add manifest errors from an extension's install warnings.
142 void AddManifestErrorsForExtension(const Extension* extension); 144 void AddManifestErrorsForExtension(const Extension* extension);
143 145
144 // content::NotificationObserver implementation. 146 // content::NotificationObserver implementation.
145 virtual void Observe(int type, 147 virtual void Observe(int type,
146 const content::NotificationSource& source, 148 const content::NotificationSource& source,
147 const content::NotificationDetails& details) OVERRIDE; 149 const content::NotificationDetails& details) OVERRIDE;
148 150
149 // Returns the applicable bit mask of reporting preferences for the extension. 151 // Returns the applicable bit mask of reporting preferences for the extension.
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
183 185
184 ScopedObserver<ExtensionRegistry, ExtensionRegistryObserver> 186 ScopedObserver<ExtensionRegistry, ExtensionRegistryObserver>
185 registry_observer_; 187 registry_observer_;
186 188
187 DISALLOW_COPY_AND_ASSIGN(ErrorConsole); 189 DISALLOW_COPY_AND_ASSIGN(ErrorConsole);
188 }; 190 };
189 191
190 } // namespace extensions 192 } // namespace extensions
191 193
192 #endif // CHROME_BROWSER_EXTENSIONS_ERROR_CONSOLE_ERROR_CONSOLE_H_ 194 #endif // CHROME_BROWSER_EXTENSIONS_ERROR_CONSOLE_ERROR_CONSOLE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698