| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 | 7 |
| 8 // This file describes various types used to describe and filter notifications | 8 // This file describes various types used to describe and filter notifications |
| 9 // that pass through the NotificationService. | 9 // that pass through the NotificationService. |
| 10 // | 10 // |
| (...skipping 585 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 596 // Extensions -------------------------------------------------------------- | 596 // Extensions -------------------------------------------------------------- |
| 597 | 597 |
| 598 // Sent when the known installed extensions have all been loaded. In | 598 // Sent when the known installed extensions have all been loaded. In |
| 599 // testing scenarios this can happen multiple times if extensions are | 599 // testing scenarios this can happen multiple times if extensions are |
| 600 // unloaded and reloaded. | 600 // unloaded and reloaded. |
| 601 EXTENSIONS_READY, | 601 EXTENSIONS_READY, |
| 602 | 602 |
| 603 // Sent when new extensions are loaded. The details are an ExtensionList*. | 603 // Sent when new extensions are loaded. The details are an ExtensionList*. |
| 604 EXTENSIONS_LOADED, | 604 EXTENSIONS_LOADED, |
| 605 | 605 |
| 606 // Sent when attempting to load a new extension, but they are disabled. The |
| 607 // details are an Extension*. |
| 608 EXTENSION_UPDATE_DISABLED, |
| 609 |
| 606 // Sent when a new theme is installed. The details are an Extension. | 610 // Sent when a new theme is installed. The details are an Extension. |
| 607 THEME_INSTALLED, | 611 THEME_INSTALLED, |
| 608 | 612 |
| 609 // Sent when new extensions are installed. The details are an Extension. | 613 // Sent when new extensions are installed. The details are an Extension. |
| 610 EXTENSION_INSTALLED, | 614 EXTENSION_INSTALLED, |
| 611 | 615 |
| 612 // Sent when an extension is unloaded. This happens when an extension is | 616 // Sent when an extension is unloaded. This happens when an extension is |
| 613 // uninstalled. When we add a disable feature, it will also happen then. | 617 // uninstalled. When we add a disable feature, it will also happen then. |
| 614 // The details are an Extension. Note that when this notification is sent, | 618 // The details are an Extension. Note that when this notification is sent, |
| 615 // ExtensionsService has already removed the extension from its internal | 619 // ExtensionsService has already removed the extension from its internal |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 659 }; | 663 }; |
| 660 | 664 |
| 661 inline bool operator==(NotificationType::Type a, NotificationType b) { | 665 inline bool operator==(NotificationType::Type a, NotificationType b) { |
| 662 return a == b.value; | 666 return a == b.value; |
| 663 } | 667 } |
| 664 inline bool operator!=(NotificationType::Type a, NotificationType b) { | 668 inline bool operator!=(NotificationType::Type a, NotificationType b) { |
| 665 return a != b.value; | 669 return a != b.value; |
| 666 } | 670 } |
| 667 | 671 |
| 668 #endif // CHROME_COMMON_NOTIFICATION_TYPE_H_ | 672 #endif // CHROME_COMMON_NOTIFICATION_TYPE_H_ |
| OLD | NEW |