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 <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <map> | 10 #include <map> |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
91 const base::Callback< | 91 const base::Callback< |
92 void(std::unique_ptr<std::vector<scoped_refptr<Action>>>)>& callback); | 92 void(std::unique_ptr<std::vector<scoped_refptr<Action>>>)>& callback); |
93 | 93 |
94 // ExtensionRegistryObserver. | 94 // ExtensionRegistryObserver. |
95 // We keep track of whether the whitelisted extension is installed; if it is, | 95 // We keep track of whether the whitelisted extension is installed; if it is, |
96 // we want to recompute whether to have logging enabled. | 96 // we want to recompute whether to have logging enabled. |
97 void OnExtensionLoaded(content::BrowserContext* browser_context, | 97 void OnExtensionLoaded(content::BrowserContext* browser_context, |
98 const Extension* extension) override; | 98 const Extension* extension) override; |
99 void OnExtensionUnloaded(content::BrowserContext* browser_context, | 99 void OnExtensionUnloaded(content::BrowserContext* browser_context, |
100 const Extension* extension, | 100 const Extension* extension, |
101 UnloadedExtensionInfo::Reason reason) override; | 101 UnloadedExtensionReason reason) override; |
102 void OnExtensionUninstalled(content::BrowserContext* browser_context, | 102 void OnExtensionUninstalled(content::BrowserContext* browser_context, |
103 const Extension* extension, | 103 const Extension* extension, |
104 extensions::UninstallReason reason) override; | 104 extensions::UninstallReason reason) override; |
105 | 105 |
106 static void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry); | 106 static void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry); |
107 | 107 |
108 // Remove actions from the activity log database which IDs specified in the | 108 // Remove actions from the activity log database which IDs specified in the |
109 // action_ids array. | 109 // action_ids array. |
110 void RemoveActions(const std::vector<int64_t>& action_ids); | 110 void RemoveActions(const std::vector<int64_t>& action_ids); |
111 | 111 |
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
240 FRIEND_TEST_ALL_PREFIXES(ActivityLogEnabledTest, WatchdogSwitch); | 240 FRIEND_TEST_ALL_PREFIXES(ActivityLogEnabledTest, WatchdogSwitch); |
241 DISALLOW_COPY_AND_ASSIGN(ActivityLog); | 241 DISALLOW_COPY_AND_ASSIGN(ActivityLog); |
242 }; | 242 }; |
243 | 243 |
244 template <> | 244 template <> |
245 void BrowserContextKeyedAPIFactory<ActivityLog>::DeclareFactoryDependencies(); | 245 void BrowserContextKeyedAPIFactory<ActivityLog>::DeclareFactoryDependencies(); |
246 | 246 |
247 } // namespace extensions | 247 } // namespace extensions |
248 | 248 |
249 #endif // CHROME_BROWSER_EXTENSIONS_ACTIVITY_LOG_ACTIVITY_LOG_H_ | 249 #endif // CHROME_BROWSER_EXTENSIONS_ACTIVITY_LOG_ACTIVITY_LOG_H_ |
OLD | NEW |