| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 CONTENT_COMMON_NOTIFICATION_TYPE_H_ | 5 #ifndef CONTENT_COMMON_NOTIFICATION_TYPE_H_ |
| 6 #define CONTENT_COMMON_NOTIFICATION_TYPE_H_ | 6 #define CONTENT_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 959 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 970 // installed extensions. The source is a Profile, and there are no details. | 970 // installed extensions. The source is a Profile, and there are no details. |
| 971 // NOTE: It's possible that there are extension updates still being | 971 // NOTE: It's possible that there are extension updates still being |
| 972 // installed by the extension service at the time this notification fires. | 972 // installed by the extension service at the time this notification fires. |
| 973 EXTENSION_UPDATING_FINISHED, | 973 EXTENSION_UPDATING_FINISHED, |
| 974 | 974 |
| 975 // The extension updater found an update and will attempt to download and | 975 // The extension updater found an update and will attempt to download and |
| 976 // install it. The source is a Profile, and the details are an extension id | 976 // install it. The source is a Profile, and the details are an extension id |
| 977 // (const std::string). | 977 // (const std::string). |
| 978 EXTENSION_UPDATE_FOUND, | 978 EXTENSION_UPDATE_FOUND, |
| 979 | 979 |
| 980 // An installed app changed notification state (added or removed |
| 981 // notifications). The source is a Profile, and there are no details. |
| 982 APP_NOTIFICATION_STATE_CHANGED, |
| 983 |
| 980 // Desktop Notifications --------------------------------------------------- | 984 // Desktop Notifications --------------------------------------------------- |
| 981 | 985 |
| 982 // This notification is sent when a balloon is connected to a renderer | 986 // This notification is sent when a balloon is connected to a renderer |
| 983 // process to render the balloon contents. The source is a | 987 // process to render the balloon contents. The source is a |
| 984 // Source<BalloonHost> with a pointer to the the balloon. A | 988 // Source<BalloonHost> with a pointer to the the balloon. A |
| 985 // NOTIFY_BALLOON_DISCONNECTED is guaranteed before the source pointer | 989 // NOTIFY_BALLOON_DISCONNECTED is guaranteed before the source pointer |
| 986 // becomes junk. No details expected. | 990 // becomes junk. No details expected. |
| 987 NOTIFY_BALLOON_CONNECTED, | 991 NOTIFY_BALLOON_CONNECTED, |
| 988 | 992 |
| 989 // This message is sent after a balloon is disconnected from the renderer | 993 // This message is sent after a balloon is disconnected from the renderer |
| (...skipping 354 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1344 }; | 1348 }; |
| 1345 | 1349 |
| 1346 inline bool operator==(NotificationType::Type a, NotificationType b) { | 1350 inline bool operator==(NotificationType::Type a, NotificationType b) { |
| 1347 return a == b.value; | 1351 return a == b.value; |
| 1348 } | 1352 } |
| 1349 inline bool operator!=(NotificationType::Type a, NotificationType b) { | 1353 inline bool operator!=(NotificationType::Type a, NotificationType b) { |
| 1350 return a != b.value; | 1354 return a != b.value; |
| 1351 } | 1355 } |
| 1352 | 1356 |
| 1353 #endif // CONTENT_COMMON_NOTIFICATION_TYPE_H_ | 1357 #endif // CONTENT_COMMON_NOTIFICATION_TYPE_H_ |
| OLD | NEW |