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

Side by Side Diff: chrome/browser/notifications/notification_system_observer.h

Issue 2839373003: struct UnloadedExtensionInfo -> enum UnloadedExtensionInfoReason (Closed)
Patch Set: Rebase Created 3 years, 7 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_NOTIFICATIONS_NOTIFICATION_SYSTEM_OBSERVER_H_ 5 #ifndef CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_SYSTEM_OBSERVER_H_
6 #define CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_SYSTEM_OBSERVER_H_ 6 #define CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_SYSTEM_OBSERVER_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/scoped_observer.h" 9 #include "base/scoped_observer.h"
10 #include "content/public/browser/notification_observer.h" 10 #include "content/public/browser/notification_observer.h"
(...skipping 18 matching lines...) Expand all
29 explicit NotificationSystemObserver(NotificationUIManager* ui_manager); 29 explicit NotificationSystemObserver(NotificationUIManager* ui_manager);
30 ~NotificationSystemObserver() override; 30 ~NotificationSystemObserver() override;
31 31
32 protected: 32 protected:
33 // content::NotificationObserver override. 33 // content::NotificationObserver override.
34 void Observe(int type, 34 void Observe(int type,
35 const content::NotificationSource& source, 35 const content::NotificationSource& source,
36 const content::NotificationDetails& details) override; 36 const content::NotificationDetails& details) override;
37 37
38 // extensions::ExtensionRegistryObserver override. 38 // extensions::ExtensionRegistryObserver override.
39 void OnExtensionUnloaded( 39 void OnExtensionUnloaded(content::BrowserContext* browser_context,
40 content::BrowserContext* browser_context, 40 const extensions::Extension* extension,
41 const extensions::Extension* extension, 41 extensions::UnloadedExtensionReason reason) override;
42 extensions::UnloadedExtensionInfo::Reason reason) override;
43 void OnShutdown(extensions::ExtensionRegistry* registry) override; 42 void OnShutdown(extensions::ExtensionRegistry* registry) override;
44 43
45 private: 44 private:
46 // Registrar for the other kind of notifications (event signaling). 45 // Registrar for the other kind of notifications (event signaling).
47 content::NotificationRegistrar registrar_; 46 content::NotificationRegistrar registrar_;
48 NotificationUIManager* ui_manager_; 47 NotificationUIManager* ui_manager_;
49 48
50 ScopedObserver<extensions::ExtensionRegistry, 49 ScopedObserver<extensions::ExtensionRegistry,
51 extensions::ExtensionRegistryObserver> 50 extensions::ExtensionRegistryObserver>
52 extension_registry_observer_; 51 extension_registry_observer_;
53 52
54 DISALLOW_COPY_AND_ASSIGN(NotificationSystemObserver); 53 DISALLOW_COPY_AND_ASSIGN(NotificationSystemObserver);
55 }; 54 };
56 55
57 #endif // CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_SYSTEM_OBSERVER_H_ 56 #endif // CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_SYSTEM_OBSERVER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698