| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_EXTENSION_STORAGE_MONITOR_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_STORAGE_MONITOR_H_ |
| 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_STORAGE_MONITOR_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_STORAGE_MONITOR_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <set> | 10 #include <set> |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 // content::NotificationObserver overrides: | 57 // content::NotificationObserver overrides: |
| 58 void Observe(int type, | 58 void Observe(int type, |
| 59 const content::NotificationSource& source, | 59 const content::NotificationSource& source, |
| 60 const content::NotificationDetails& details) override; | 60 const content::NotificationDetails& details) override; |
| 61 | 61 |
| 62 // ExtensionRegistryObserver overrides: | 62 // ExtensionRegistryObserver overrides: |
| 63 void OnExtensionLoaded(content::BrowserContext* browser_context, | 63 void OnExtensionLoaded(content::BrowserContext* browser_context, |
| 64 const Extension* extension) override; | 64 const Extension* extension) override; |
| 65 void OnExtensionUnloaded(content::BrowserContext* browser_context, | 65 void OnExtensionUnloaded(content::BrowserContext* browser_context, |
| 66 const Extension* extension, | 66 const Extension* extension, |
| 67 UnloadedExtensionInfo::Reason reason) override; | 67 UnloadedExtensionReason reason) override; |
| 68 void OnExtensionWillBeInstalled(content::BrowserContext* browser_context, | 68 void OnExtensionWillBeInstalled(content::BrowserContext* browser_context, |
| 69 const Extension* extension, | 69 const Extension* extension, |
| 70 bool is_update, | 70 bool is_update, |
| 71 const std::string& old_name) override; | 71 const std::string& old_name) override; |
| 72 void OnExtensionUninstalled(content::BrowserContext* browser_context, | 72 void OnExtensionUninstalled(content::BrowserContext* browser_context, |
| 73 const Extension* extension, | 73 const Extension* extension, |
| 74 extensions::UninstallReason reason) override; | 74 extensions::UninstallReason reason) override; |
| 75 | 75 |
| 76 // Overridden from ExtensionUninstallDialog::Delegate: | 76 // Overridden from ExtensionUninstallDialog::Delegate: |
| 77 void OnExtensionUninstallDialogClosed(bool did_start_uninstall, | 77 void OnExtensionUninstallDialogClosed(bool did_start_uninstall, |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 153 | 153 |
| 154 friend class StorageEventObserver; | 154 friend class StorageEventObserver; |
| 155 friend class ExtensionStorageMonitorTest; | 155 friend class ExtensionStorageMonitorTest; |
| 156 | 156 |
| 157 DISALLOW_COPY_AND_ASSIGN(ExtensionStorageMonitor); | 157 DISALLOW_COPY_AND_ASSIGN(ExtensionStorageMonitor); |
| 158 }; | 158 }; |
| 159 | 159 |
| 160 } // namespace extensions | 160 } // namespace extensions |
| 161 | 161 |
| 162 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_STORAGE_MONITOR_H_ | 162 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_STORAGE_MONITOR_H_ |
| OLD | NEW |