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

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

Issue 2225003: Implement upgrade notifications.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2009 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 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 //
11 // It is written as an enum inside a class so that it can be forward declared. 11 // It is written as an enum inside a class so that it can be forward declared.
(...skipping 870 matching lines...) Expand 10 before | Expand all | Expand 10 after
882 // This notification is sent whenever the web database service has finished 882 // This notification is sent whenever the web database service has finished
883 // loading the web database. No details are expected. 883 // loading the web database. No details are expected.
884 WEB_DATABASE_LOADED, 884 WEB_DATABASE_LOADED,
885 885
886 // Purge Memory ------------------------------------------------------------ 886 // Purge Memory ------------------------------------------------------------
887 887
888 // Sent on the IO thread when the system should try to reduce the amount of 888 // Sent on the IO thread when the system should try to reduce the amount of
889 // memory in use, no source or details are passed. See memory_purger.h .cc. 889 // memory in use, no source or details are passed. See memory_purger.h .cc.
890 PURGE_MEMORY, 890 PURGE_MEMORY,
891 891
892 // Upgrade notifications ---------------------------------------------------
893
894 // Sent when Chrome detects that it has been upgraded behind the scenes.
895 // NOTE: The detection mechanism is asynchronous, so this event may arrive
896 // quite some time after the upgrade actually happened. No details are
897 // expected.
898 UPGRADE_DETECTED,
899
900 // Sent when Chrome believes an update has been installed and available for
901 // long enough with the user shutting down to let it take effect. See
902 // upgrade_detector.cc for details on how long it waits. No details are
903 // expected.
904 UPGRADE_RECOMMENDED,
905
892 // Accessibility Notifications --------------------------------------------- 906 // Accessibility Notifications ---------------------------------------------
893 907
894 // Notification that a window in the browser UI (not the web content) 908 // Notification that a window in the browser UI (not the web content)
895 // was opened, for propagating to an accessibility extension. 909 // was opened, for propagating to an accessibility extension.
896 // Details will be an AccessibilityWindowInfo. 910 // Details will be an AccessibilityWindowInfo.
897 ACCESSIBILITY_WINDOW_OPENED, 911 ACCESSIBILITY_WINDOW_OPENED,
898 912
899 // Notification that a window in the browser UI was closed. 913 // Notification that a window in the browser UI was closed.
900 // Details will be an AccessibilityWindowInfo. 914 // Details will be an AccessibilityWindowInfo.
901 ACCESSIBILITY_WINDOW_CLOSED, 915 ACCESSIBILITY_WINDOW_CLOSED,
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
1006 }; 1020 };
1007 1021
1008 inline bool operator==(NotificationType::Type a, NotificationType b) { 1022 inline bool operator==(NotificationType::Type a, NotificationType b) {
1009 return a == b.value; 1023 return a == b.value;
1010 } 1024 }
1011 inline bool operator!=(NotificationType::Type a, NotificationType b) { 1025 inline bool operator!=(NotificationType::Type a, NotificationType b) {
1012 return a != b.value; 1026 return a != b.value;
1013 } 1027 }
1014 1028
1015 #endif // CHROME_COMMON_NOTIFICATION_TYPE_H_ 1029 #endif // CHROME_COMMON_NOTIFICATION_TYPE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698