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

Side by Side Diff: extensions/browser/warning_service.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 (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 EXTENSIONS_BROWSER_WARNING_SERVICE_H_ 5 #ifndef EXTENSIONS_BROWSER_WARNING_SERVICE_H_
6 #define EXTENSIONS_BROWSER_WARNING_SERVICE_H_ 6 #define EXTENSIONS_BROWSER_WARNING_SERVICE_H_
7 7
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 72
73 void AddObserver(Observer* observer); 73 void AddObserver(Observer* observer);
74 void RemoveObserver(Observer* observer); 74 void RemoveObserver(Observer* observer);
75 75
76 private: 76 private:
77 void NotifyWarningsChanged(const ExtensionIdSet& affected_extensions); 77 void NotifyWarningsChanged(const ExtensionIdSet& affected_extensions);
78 78
79 // ExtensionRegistryObserver implementation. 79 // ExtensionRegistryObserver implementation.
80 void OnExtensionUnloaded(content::BrowserContext* browser_context, 80 void OnExtensionUnloaded(content::BrowserContext* browser_context,
81 const Extension* extension, 81 const Extension* extension,
82 UnloadedExtensionInfo::Reason reason) override; 82 UnloadedExtensionReason reason) override;
83 83
84 // Currently existing warnings. 84 // Currently existing warnings.
85 WarningSet warnings_; 85 WarningSet warnings_;
86 86
87 content::BrowserContext* const browser_context_; 87 content::BrowserContext* const browser_context_;
88 88
89 // Listen to extension unloaded notifications. 89 // Listen to extension unloaded notifications.
90 ScopedObserver<ExtensionRegistry, ExtensionRegistryObserver> 90 ScopedObserver<ExtensionRegistry, ExtensionRegistryObserver>
91 extension_registry_observer_; 91 extension_registry_observer_;
92 92
93 base::ObserverList<Observer> observer_list_; 93 base::ObserverList<Observer> observer_list_;
94 }; 94 };
95 95
96 } // namespace extensions 96 } // namespace extensions
97 97
98 #endif // EXTENSIONS_BROWSER_WARNING_SERVICE_H_ 98 #endif // EXTENSIONS_BROWSER_WARNING_SERVICE_H_
OLDNEW
« no previous file with comments | « extensions/browser/test_extension_registry_observer.cc ('k') | extensions/browser/warning_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698