Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(201)

Side by Side Diff: chrome/common/notification_type.h

Issue 1521039: Allow extension overinstall (Closed)
Patch Set: blargh Created 10 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 717 matching lines...) Expand 10 before | Expand all | Expand 10 after
728 728
729 // Sent when attempting to load a new extension, but they are disabled. The 729 // Sent when attempting to load a new extension, but they are disabled. The
730 // details are an Extension*, and the source is a Profile*. 730 // details are an Extension*, and the source is a Profile*.
731 EXTENSION_UPDATE_DISABLED, 731 EXTENSION_UPDATE_DISABLED,
732 732
733 // Sent when an extension is about to be installed so we can (in the case of 733 // Sent when an extension is about to be installed so we can (in the case of
734 // themes) alert the user with a loading dialog. The source is the download 734 // themes) alert the user with a loading dialog. The source is the download
735 // manager and the details are the download url. 735 // manager and the details are the download url.
736 EXTENSION_READY_FOR_INSTALL, 736 EXTENSION_READY_FOR_INSTALL,
737 737
738 // Sent on ExtensionOverinstallAttempted when no theme is detected. The 738 // Sent when an extension install turns out to not be a theme.
739 // source is a Profile.
740 NO_THEME_DETECTED, 739 NO_THEME_DETECTED,
741 740
742 // Sent when a new theme is installed. The details are an Extension, and the 741 // Sent when a new theme is installed. The details are an Extension, and the
743 // source is a Profile. 742 // source is a Profile.
744 THEME_INSTALLED, 743 THEME_INSTALLED,
745 744
746 // Sent when new extensions are installed. The details are an Extension, and 745 // Sent when new extensions are installed. The details are an Extension, and
747 // the source is a Profile. 746 // the source is a Profile.
748 EXTENSION_INSTALLED, 747 EXTENSION_INSTALLED,
749 748
750 // An error occured during extension install. The details are a string with 749 // An error occured during extension install. The details are a string with
751 // details about why the install failed. 750 // details about why the install failed.
752 EXTENSION_INSTALL_ERROR, 751 EXTENSION_INSTALL_ERROR,
753 752
754 // An overinstall error occured during extension install. The details are a
755 // FilePath to the extension that was attempted to install.
756 EXTENSION_OVERINSTALL_ERROR,
757
758 // Sent when an extension is unloaded. This happens when an extension is 753 // Sent when an extension is unloaded. This happens when an extension is
759 // uninstalled or disabled. The details are an Extension, and the source is 754 // uninstalled or disabled. The details are an Extension, and the source is
760 // a Profile. 755 // a Profile.
761 // 756 //
762 // Note that when this notification is sent, ExtensionsService has already 757 // Note that when this notification is sent, ExtensionsService has already
763 // removed the extension from its internal state. 758 // removed the extension from its internal state.
764 EXTENSION_UNLOADED, 759 EXTENSION_UNLOADED,
765 760
766 // Same as above, but for a disabled extension. 761 // Same as above, but for a disabled extension.
767 EXTENSION_UNLOADED_DISABLED, 762 EXTENSION_UNLOADED_DISABLED,
(...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after
1011 }; 1006 };
1012 1007
1013 inline bool operator==(NotificationType::Type a, NotificationType b) { 1008 inline bool operator==(NotificationType::Type a, NotificationType b) {
1014 return a == b.value; 1009 return a == b.value;
1015 } 1010 }
1016 inline bool operator!=(NotificationType::Type a, NotificationType b) { 1011 inline bool operator!=(NotificationType::Type a, NotificationType b) {
1017 return a != b.value; 1012 return a != b.value;
1018 } 1013 }
1019 1014
1020 #endif // CHROME_COMMON_NOTIFICATION_TYPE_H_ 1015 #endif // CHROME_COMMON_NOTIFICATION_TYPE_H_
OLDNEW
« no previous file with comments | « chrome/common/extensions/extension_file_util_unittest.cc ('k') | chrome/test/automation/automation_constants.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698