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

Side by Side Diff: chrome/browser/extensions/api/declarative/rules_registry_service.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_DECLARATIVE_RULES_REGISTRY_SERVICE_H__ 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_DECLARATIVE_RULES_REGISTRY_SERVICE_H__
6 #define CHROME_BROWSER_EXTENSIONS_API_DECLARATIVE_RULES_REGISTRY_SERVICE_H__ 6 #define CHROME_BROWSER_EXTENSIONS_API_DECLARATIVE_RULES_REGISTRY_SERVICE_H__
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 const content::NotificationSource& source, 109 const content::NotificationSource& source,
110 const content::NotificationDetails& details) OVERRIDE; 110 const content::NotificationDetails& details) OVERRIDE;
111 111
112 // ExtensionRegistryObserver implementation. 112 // ExtensionRegistryObserver implementation.
113 virtual void OnExtensionLoaded(content::BrowserContext* browser_context, 113 virtual void OnExtensionLoaded(content::BrowserContext* browser_context,
114 const Extension* extension) OVERRIDE; 114 const Extension* extension) OVERRIDE;
115 virtual void OnExtensionUnloaded( 115 virtual void OnExtensionUnloaded(
116 content::BrowserContext* browser_context, 116 content::BrowserContext* browser_context,
117 const Extension* extension, 117 const Extension* extension,
118 UnloadedExtensionInfo::Reason reason) OVERRIDE; 118 UnloadedExtensionInfo::Reason reason) OVERRIDE;
119 virtual void OnExtensionUninstalled(content::BrowserContext* browser_context, 119 virtual void OnExtensionUninstalled(
120 const Extension* extension) OVERRIDE; 120 content::BrowserContext* browser_context,
121 const Extension* extension,
122 extensions::UninstallReason reason) OVERRIDE;
121 123
122 // Iterates over all registries, and calls |notification_callback| on them 124 // Iterates over all registries, and calls |notification_callback| on them
123 // with |extension_id| as the argument. If a registry lives on a different 125 // with |extension_id| as the argument. If a registry lives on a different
124 // thread, the call is posted to that thread, so no guarantee of synchronous 126 // thread, the call is posted to that thread, so no guarantee of synchronous
125 // processing. 127 // processing.
126 void NotifyRegistriesHelper( 128 void NotifyRegistriesHelper(
127 void (RulesRegistry::*notification_callback)(const std::string&), 129 void (RulesRegistry::*notification_callback)(const std::string&),
128 const std::string& extension_id); 130 const std::string& extension_id);
129 131
130 // BrowserContextKeyedAPI implementation. 132 // BrowserContextKeyedAPI implementation.
(...skipping 19 matching lines...) Expand all
150 extension_registry_observer_; 152 extension_registry_observer_;
151 153
152 Profile* profile_; 154 Profile* profile_;
153 155
154 DISALLOW_COPY_AND_ASSIGN(RulesRegistryService); 156 DISALLOW_COPY_AND_ASSIGN(RulesRegistryService);
155 }; 157 };
156 158
157 } // namespace extensions 159 } // namespace extensions
158 160
159 #endif // CHROME_BROWSER_EXTENSIONS_API_DECLARATIVE_RULES_REGISTRY_SERVICE_H__ 161 #endif // CHROME_BROWSER_EXTENSIONS_API_DECLARATIVE_RULES_REGISTRY_SERVICE_H__
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698