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

Side by Side Diff: chrome/browser/extensions/api/management/management_api.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 (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_API_MANAGEMENT_MANAGEMENT_API_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_MANAGEMENT_MANAGEMENT_API_H_
6 #define CHROME_BROWSER_EXTENSIONS_API_MANAGEMENT_MANAGEMENT_API_H_ 6 #define CHROME_BROWSER_EXTENSIONS_API_MANAGEMENT_MANAGEMENT_API_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/scoped_observer.h" 9 #include "base/scoped_observer.h"
10 #include "base/task/cancelable_task_tracker.h" 10 #include "base/task/cancelable_task_tracker.h"
(...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after
240 // ExtensionRegistryObserver implementation. 240 // ExtensionRegistryObserver implementation.
241 virtual void OnExtensionLoaded(content::BrowserContext* browser_context, 241 virtual void OnExtensionLoaded(content::BrowserContext* browser_context,
242 const Extension* extension) OVERRIDE; 242 const Extension* extension) OVERRIDE;
243 virtual void OnExtensionUnloaded( 243 virtual void OnExtensionUnloaded(
244 content::BrowserContext* browser_context, 244 content::BrowserContext* browser_context,
245 const Extension* extension, 245 const Extension* extension,
246 UnloadedExtensionInfo::Reason reason) OVERRIDE; 246 UnloadedExtensionInfo::Reason reason) OVERRIDE;
247 virtual void OnExtensionInstalled(content::BrowserContext* browser_context, 247 virtual void OnExtensionInstalled(content::BrowserContext* browser_context,
248 const Extension* extension, 248 const Extension* extension,
249 bool is_update) OVERRIDE; 249 bool is_update) OVERRIDE;
250 virtual void OnExtensionUninstalled(content::BrowserContext* browser_context, 250 virtual void OnExtensionUninstalled(
251 const Extension* extension) OVERRIDE; 251 content::BrowserContext* browser_context,
252 const Extension* extension,
253 extensions::UninstallReason reason) OVERRIDE;
252 254
253 // Dispatches management api events to listening extensions. 255 // Dispatches management api events to listening extensions.
254 void BroadcastEvent(const Extension* extension, const char* event_name); 256 void BroadcastEvent(const Extension* extension, const char* event_name);
255 257
256 content::BrowserContext* browser_context_; 258 content::BrowserContext* browser_context_;
257 259
258 ScopedObserver<ExtensionRegistry, ExtensionRegistryObserver> 260 ScopedObserver<ExtensionRegistry, ExtensionRegistryObserver>
259 extension_registry_observer_; 261 extension_registry_observer_;
260 262
261 DISALLOW_COPY_AND_ASSIGN(ManagementEventRouter); 263 DISALLOW_COPY_AND_ASSIGN(ManagementEventRouter);
(...skipping 27 matching lines...) Expand all
289 291
290 // Created lazily upon OnListenerAdded. 292 // Created lazily upon OnListenerAdded.
291 scoped_ptr<ManagementEventRouter> management_event_router_; 293 scoped_ptr<ManagementEventRouter> management_event_router_;
292 294
293 DISALLOW_COPY_AND_ASSIGN(ManagementAPI); 295 DISALLOW_COPY_AND_ASSIGN(ManagementAPI);
294 }; 296 };
295 297
296 } // namespace extensions 298 } // namespace extensions
297 299
298 #endif // CHROME_BROWSER_EXTENSIONS_API_MANAGEMENT_MANAGEMENT_API_H_ 300 #endif // CHROME_BROWSER_EXTENSIONS_API_MANAGEMENT_MANAGEMENT_API_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698