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

Side by Side Diff: chrome/browser/extensions/api/management/management_api.h

Issue 386033002: Prune shared extendion module after extension updating. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix review issues 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 | Annotate | Revision Log
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 227 matching lines...) Expand 10 before | Expand all | Expand 10 after
238 238
239 private: 239 private:
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) OVERRIDE; 248 const Extension* extension,
249 bool is_update) OVERRIDE;
249 virtual void OnExtensionUninstalled(content::BrowserContext* browser_context, 250 virtual void OnExtensionUninstalled(content::BrowserContext* browser_context,
250 const Extension* extension) OVERRIDE; 251 const Extension* extension) OVERRIDE;
251 252
252 // Dispatches management api events to listening extensions. 253 // Dispatches management api events to listening extensions.
253 void BroadcastEvent(const Extension* extension, const char* event_name); 254 void BroadcastEvent(const Extension* extension, const char* event_name);
254 255
255 content::BrowserContext* browser_context_; 256 content::BrowserContext* browser_context_;
256 257
257 ScopedObserver<ExtensionRegistry, ExtensionRegistryObserver> 258 ScopedObserver<ExtensionRegistry, ExtensionRegistryObserver>
258 extension_registry_observer_; 259 extension_registry_observer_;
(...skipping 29 matching lines...) Expand all
288 289
289 // Created lazily upon OnListenerAdded. 290 // Created lazily upon OnListenerAdded.
290 scoped_ptr<ManagementEventRouter> management_event_router_; 291 scoped_ptr<ManagementEventRouter> management_event_router_;
291 292
292 DISALLOW_COPY_AND_ASSIGN(ManagementAPI); 293 DISALLOW_COPY_AND_ASSIGN(ManagementAPI);
293 }; 294 };
294 295
295 } // namespace extensions 296 } // namespace extensions
296 297
297 #endif // CHROME_BROWSER_EXTENSIONS_API_MANAGEMENT_MANAGEMENT_API_H_ 298 #endif // CHROME_BROWSER_EXTENSIONS_API_MANAGEMENT_MANAGEMENT_API_H_
OLDNEW
« no previous file with comments | « chrome/browser/apps/drive/drive_app_provider.cc ('k') | chrome/browser/extensions/api/management/management_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698