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_UPDATER_EXTENSION_UPDATER_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_UPDATER_EXTENSION_UPDATER_H_ |
6 #define CHROME_BROWSER_EXTENSIONS_UPDATER_EXTENSION_UPDATER_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_UPDATER_EXTENSION_UPDATER_H_ |
7 | 7 |
8 #include <list> | 8 #include <list> |
9 #include <map> | 9 #include <map> |
10 #include <set> | 10 #include <set> |
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
214 | 214 |
215 // content::NotificationObserver implementation. | 215 // content::NotificationObserver implementation. |
216 void Observe(int type, | 216 void Observe(int type, |
217 const content::NotificationSource& source, | 217 const content::NotificationSource& source, |
218 const content::NotificationDetails& details) override; | 218 const content::NotificationDetails& details) override; |
219 | 219 |
220 // Implementation of ExtensionRegistryObserver. | 220 // Implementation of ExtensionRegistryObserver. |
221 void OnExtensionWillBeInstalled(content::BrowserContext* browser_context, | 221 void OnExtensionWillBeInstalled(content::BrowserContext* browser_context, |
222 const Extension* extension, | 222 const Extension* extension, |
223 bool is_update, | 223 bool is_update, |
224 bool from_ephemeral, | |
225 const std::string& old_name) override; | 224 const std::string& old_name) override; |
226 | 225 |
227 // Send a notification that update checks are starting. | 226 // Send a notification that update checks are starting. |
228 void NotifyStarted(); | 227 void NotifyStarted(); |
229 | 228 |
230 // Send a notification if we're finished updating. | 229 // Send a notification if we're finished updating. |
231 void NotifyIfFinished(int request_id); | 230 void NotifyIfFinished(int request_id); |
232 | 231 |
233 void ExtensionCheckFinished(const std::string& extension_id, | 232 void ExtensionCheckFinished(const std::string& extension_id, |
234 const FinishedCallback& callback); | 233 const FinishedCallback& callback); |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
280 std::map<std::string, ThrottleInfo> throttle_info_; | 279 std::map<std::string, ThrottleInfo> throttle_info_; |
281 | 280 |
282 base::WeakPtrFactory<ExtensionUpdater> weak_ptr_factory_; | 281 base::WeakPtrFactory<ExtensionUpdater> weak_ptr_factory_; |
283 | 282 |
284 DISALLOW_COPY_AND_ASSIGN(ExtensionUpdater); | 283 DISALLOW_COPY_AND_ASSIGN(ExtensionUpdater); |
285 }; | 284 }; |
286 | 285 |
287 } // namespace extensions | 286 } // namespace extensions |
288 | 287 |
289 #endif // CHROME_BROWSER_EXTENSIONS_UPDATER_EXTENSION_UPDATER_H_ | 288 #endif // CHROME_BROWSER_EXTENSIONS_UPDATER_EXTENSION_UPDATER_H_ |
OLD | NEW |