| OLD | NEW |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 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_CHROME_NOTIFICATION_TYPES_H_ | 5 #ifndef CHROME_BROWSER_CHROME_NOTIFICATION_TYPES_H_ |
| 6 #define CHROME_BROWSER_CHROME_NOTIFICATION_TYPES_H_ | 6 #define CHROME_BROWSER_CHROME_NOTIFICATION_TYPES_H_ |
| 7 | 7 |
| 8 #include "build/build_config.h" | 8 #include "build/build_config.h" |
| 9 #include "content/public/browser/notification_types.h" | 9 #include "content/public/browser/notification_types.h" |
| 10 | 10 |
| (...skipping 438 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 449 | 449 |
| 450 // Sent when an extension has been uninstalled. The details are an Extension, | 450 // Sent when an extension has been uninstalled. The details are an Extension, |
| 451 // and the source is a Profile. | 451 // and the source is a Profile. |
| 452 NOTIFICATION_EXTENSION_UNINSTALLED, | 452 NOTIFICATION_EXTENSION_UNINSTALLED, |
| 453 | 453 |
| 454 // Sent when an extension uninstall is not allowed because the extension is | 454 // Sent when an extension uninstall is not allowed because the extension is |
| 455 // not user manageable. The details are an Extension, and the source is a | 455 // not user manageable. The details are an Extension, and the source is a |
| 456 // Profile. | 456 // Profile. |
| 457 NOTIFICATION_EXTENSION_UNINSTALL_NOT_ALLOWED, | 457 NOTIFICATION_EXTENSION_UNINSTALL_NOT_ALLOWED, |
| 458 | 458 |
| 459 // DEPRECATED: Use ExtensionRegistry::AddObserver instead. |
| 460 // |
| 459 // Sent when an extension is unloaded. This happens when an extension is | 461 // Sent when an extension is unloaded. This happens when an extension is |
| 460 // uninstalled or disabled. The details are an UnloadedExtensionInfo, and | 462 // uninstalled or disabled. The details are an UnloadedExtensionInfo, and |
| 461 // the source is a Profile. | 463 // the source is a Profile. |
| 462 // | 464 // |
| 463 // Note that when this notification is sent, ExtensionService has already | 465 // Note that when this notification is sent, ExtensionService has already |
| 464 // removed the extension from its internal state. | 466 // removed the extension from its internal state. |
| 465 NOTIFICATION_EXTENSION_UNLOADED, | 467 NOTIFICATION_EXTENSION_UNLOADED_DEPRECATED, |
| 466 | 468 |
| 467 // Sent when an Extension object is removed from ExtensionService. This | 469 // Sent when an Extension object is removed from ExtensionService. This |
| 468 // can happen when an extension is uninstalled, upgraded, or blacklisted, | 470 // can happen when an extension is uninstalled, upgraded, or blacklisted, |
| 469 // including all cases when the Extension is deleted. The details are an | 471 // including all cases when the Extension is deleted. The details are an |
| 470 // Extension, and the source is a Profile. | 472 // Extension, and the source is a Profile. |
| 471 NOTIFICATION_EXTENSION_REMOVED, | 473 NOTIFICATION_EXTENSION_REMOVED, |
| 472 | 474 |
| 473 // Sent after a new ExtensionHost is created. The details are | 475 // Sent after a new ExtensionHost is created. The details are |
| 474 // an ExtensionHost* and the source is a Profile*. | 476 // an ExtensionHost* and the source is a Profile*. |
| 475 NOTIFICATION_EXTENSION_HOST_CREATED, | 477 NOTIFICATION_EXTENSION_HOST_CREATED, |
| (...skipping 518 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 994 // Note:- | 996 // Note:- |
| 995 // Currently only Content and Chrome define and use notifications. | 997 // Currently only Content and Chrome define and use notifications. |
| 996 // Custom notifications not belonging to Content and Chrome should start | 998 // Custom notifications not belonging to Content and Chrome should start |
| 997 // from here. | 999 // from here. |
| 998 NOTIFICATION_CHROME_END, | 1000 NOTIFICATION_CHROME_END, |
| 999 }; | 1001 }; |
| 1000 | 1002 |
| 1001 } // namespace chrome | 1003 } // namespace chrome |
| 1002 | 1004 |
| 1003 #endif // CHROME_BROWSER_CHROME_NOTIFICATION_TYPES_H_ | 1005 #endif // CHROME_BROWSER_CHROME_NOTIFICATION_TYPES_H_ |
| OLD | NEW |