OLD | NEW |
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_ACTIVITY_LOG_ACTIVITY_LOG_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_ACTIVITY_LOG_ACTIVITY_LOG_H_ |
6 #define CHROME_BROWSER_EXTENSIONS_ACTIVITY_LOG_ACTIVITY_LOG_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_ACTIVITY_LOG_ACTIVITY_LOG_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
89 | 89 |
90 // ExtensionRegistryObserver. | 90 // ExtensionRegistryObserver. |
91 // We keep track of whether the whitelisted extension is installed; if it is, | 91 // We keep track of whether the whitelisted extension is installed; if it is, |
92 // we want to recompute whether to have logging enabled. | 92 // we want to recompute whether to have logging enabled. |
93 virtual void OnExtensionLoaded(content::BrowserContext* browser_context, | 93 virtual void OnExtensionLoaded(content::BrowserContext* browser_context, |
94 const Extension* extension) OVERRIDE; | 94 const Extension* extension) OVERRIDE; |
95 virtual void OnExtensionUnloaded( | 95 virtual void OnExtensionUnloaded( |
96 content::BrowserContext* browser_context, | 96 content::BrowserContext* browser_context, |
97 const Extension* extension, | 97 const Extension* extension, |
98 UnloadedExtensionInfo::Reason reason) OVERRIDE; | 98 UnloadedExtensionInfo::Reason reason) OVERRIDE; |
99 virtual void OnExtensionUninstalled(content::BrowserContext* browser_context, | 99 virtual void OnExtensionUninstalled( |
100 const Extension* extension) OVERRIDE; | 100 content::BrowserContext* browser_context, |
| 101 const Extension* extension, |
| 102 extensions::UninstallReason reason) OVERRIDE; |
101 | 103 |
102 // ApiActivityMonitor. | 104 // ApiActivityMonitor. |
103 virtual void OnApiEventDispatched( | 105 virtual void OnApiEventDispatched( |
104 const std::string& extension_id, | 106 const std::string& extension_id, |
105 const std::string& event_name, | 107 const std::string& event_name, |
106 scoped_ptr<base::ListValue> event_args) OVERRIDE; | 108 scoped_ptr<base::ListValue> event_args) OVERRIDE; |
107 virtual void OnApiFunctionCalled( | 109 virtual void OnApiFunctionCalled( |
108 const std::string& extension_id, | 110 const std::string& extension_id, |
109 const std::string& api_name, | 111 const std::string& api_name, |
110 scoped_ptr<base::ListValue> event_args) OVERRIDE; | 112 scoped_ptr<base::ListValue> event_args) OVERRIDE; |
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
221 FRIEND_TEST_ALL_PREFIXES(ActivityLogEnabledTest, WatchdogSwitch); | 223 FRIEND_TEST_ALL_PREFIXES(ActivityLogEnabledTest, WatchdogSwitch); |
222 DISALLOW_COPY_AND_ASSIGN(ActivityLog); | 224 DISALLOW_COPY_AND_ASSIGN(ActivityLog); |
223 }; | 225 }; |
224 | 226 |
225 template <> | 227 template <> |
226 void BrowserContextKeyedAPIFactory<ActivityLog>::DeclareFactoryDependencies(); | 228 void BrowserContextKeyedAPIFactory<ActivityLog>::DeclareFactoryDependencies(); |
227 | 229 |
228 } // namespace extensions | 230 } // namespace extensions |
229 | 231 |
230 #endif // CHROME_BROWSER_EXTENSIONS_ACTIVITY_LOG_ACTIVITY_LOG_H_ | 232 #endif // CHROME_BROWSER_EXTENSIONS_ACTIVITY_LOG_ACTIVITY_LOG_H_ |
OLD | NEW |