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 <set> | 8 #include <set> |
9 | 9 |
10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 virtual void OnExtensionUnloaded( | 62 virtual void OnExtensionUnloaded( |
63 content::BrowserContext* browser_context, | 63 content::BrowserContext* browser_context, |
64 const Extension* extension, | 64 const Extension* extension, |
65 UnloadedExtensionInfo::Reason reason) OVERRIDE; | 65 UnloadedExtensionInfo::Reason reason) OVERRIDE; |
66 virtual void OnExtensionWillBeInstalled( | 66 virtual void OnExtensionWillBeInstalled( |
67 content::BrowserContext* browser_context, | 67 content::BrowserContext* browser_context, |
68 const Extension* extension, | 68 const Extension* extension, |
69 bool is_update, | 69 bool is_update, |
70 bool from_ephemeral, | 70 bool from_ephemeral, |
71 const std::string& old_name) OVERRIDE; | 71 const std::string& old_name) OVERRIDE; |
72 virtual void OnExtensionUninstalled(content::BrowserContext* browser_context, | 72 virtual void OnExtensionUninstalled( |
73 const Extension* extension) OVERRIDE; | 73 content::BrowserContext* browser_context, |
| 74 const Extension* extension, |
| 75 extensions::UninstallReason reason) OVERRIDE; |
74 | 76 |
75 // Overridden from ExtensionUninstallDialog::Delegate: | 77 // Overridden from ExtensionUninstallDialog::Delegate: |
76 virtual void ExtensionUninstallAccepted() OVERRIDE; | 78 virtual void ExtensionUninstallAccepted() OVERRIDE; |
77 virtual void ExtensionUninstallCanceled() OVERRIDE; | 79 virtual void ExtensionUninstallCanceled() OVERRIDE; |
78 | 80 |
79 std::string GetNotificationId(const std::string& extension_id); | 81 std::string GetNotificationId(const std::string& extension_id); |
80 | 82 |
81 void OnStorageThresholdExceeded(const std::string& extension_id, | 83 void OnStorageThresholdExceeded(const std::string& extension_id, |
82 int64 next_threshold, | 84 int64 next_threshold, |
83 int64 current_usage); | 85 int64 current_usage); |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
153 | 155 |
154 friend class StorageEventObserver; | 156 friend class StorageEventObserver; |
155 friend class ExtensionStorageMonitorTest; | 157 friend class ExtensionStorageMonitorTest; |
156 | 158 |
157 DISALLOW_COPY_AND_ASSIGN(ExtensionStorageMonitor); | 159 DISALLOW_COPY_AND_ASSIGN(ExtensionStorageMonitor); |
158 }; | 160 }; |
159 | 161 |
160 } // namespace extensions | 162 } // namespace extensions |
161 | 163 |
162 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_STORAGE_MONITOR_H_ | 164 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_STORAGE_MONITOR_H_ |
OLD | NEW |