OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_COMMON_NOTIFICATION_TYPE_H_ | 5 #ifndef CHROME_COMMON_NOTIFICATION_TYPE_H_ |
6 #define CHROME_COMMON_NOTIFICATION_TYPE_H_ | 6 #define CHROME_COMMON_NOTIFICATION_TYPE_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 // This file describes various types used to describe and filter notifications | 9 // This file describes various types used to describe and filter notifications |
10 // that pass through the NotificationService. | 10 // that pass through the NotificationService. |
(...skipping 836 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
847 | 847 |
848 // An error occured during extension install. The details are a string with | 848 // An error occured during extension install. The details are a string with |
849 // details about why the install failed. | 849 // details about why the install failed. |
850 EXTENSION_INSTALL_ERROR, | 850 EXTENSION_INSTALL_ERROR, |
851 | 851 |
852 // Sent when an extension has been uninstalled. The details are | 852 // Sent when an extension has been uninstalled. The details are |
853 // an UninstalledExtensionInfo struct and the source is a Profile. | 853 // an UninstalledExtensionInfo struct and the source is a Profile. |
854 EXTENSION_UNINSTALLED, | 854 EXTENSION_UNINSTALLED, |
855 | 855 |
856 // Sent when an extension is unloaded. This happens when an extension is | 856 // Sent when an extension is unloaded. This happens when an extension is |
857 // uninstalled or disabled. The details are an Extension, and the source is | 857 // uninstalled or disabled. The details are an UnloadedExtensionInfo, and |
858 // a Profile. | 858 // the source is a Profile. |
859 // | 859 // |
860 // Note that when this notification is sent, ExtensionService has already | 860 // Note that when this notification is sent, ExtensionService has already |
861 // removed the extension from its internal state. | 861 // removed the extension from its internal state. |
862 EXTENSION_UNLOADED, | 862 EXTENSION_UNLOADED, |
863 | 863 |
864 // Same as above, but for a disabled extension. | |
865 EXTENSION_UNLOADED_DISABLED, | |
866 | |
867 // Sent when an extension has updated its user scripts. The details are an | 864 // Sent when an extension has updated its user scripts. The details are an |
868 // Extension, and the source is a Profile. | 865 // Extension, and the source is a Profile. |
869 EXTENSION_USER_SCRIPTS_UPDATED, | 866 EXTENSION_USER_SCRIPTS_UPDATED, |
870 | 867 |
871 // Sent after a new ExtensionFunctionDispatcher is created. The details are | 868 // Sent after a new ExtensionFunctionDispatcher is created. The details are |
872 // an ExtensionFunctionDispatcher* and the source is a Profile*. This is | 869 // an ExtensionFunctionDispatcher* and the source is a Profile*. This is |
873 // similar in timing to EXTENSION_HOST_CREATED, but also fires when an | 870 // similar in timing to EXTENSION_HOST_CREATED, but also fires when an |
874 // extension view which is hosted in TabContents* is created. | 871 // extension view which is hosted in TabContents* is created. |
875 EXTENSION_FUNCTION_DISPATCHER_CREATED, | 872 EXTENSION_FUNCTION_DISPATCHER_CREATED, |
876 | 873 |
(...skipping 453 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1330 }; | 1327 }; |
1331 | 1328 |
1332 inline bool operator==(NotificationType::Type a, NotificationType b) { | 1329 inline bool operator==(NotificationType::Type a, NotificationType b) { |
1333 return a == b.value; | 1330 return a == b.value; |
1334 } | 1331 } |
1335 inline bool operator!=(NotificationType::Type a, NotificationType b) { | 1332 inline bool operator!=(NotificationType::Type a, NotificationType b) { |
1336 return a != b.value; | 1333 return a != b.value; |
1337 } | 1334 } |
1338 | 1335 |
1339 #endif // CHROME_COMMON_NOTIFICATION_TYPE_H_ | 1336 #endif // CHROME_COMMON_NOTIFICATION_TYPE_H_ |
OLD | NEW |