OLD | NEW |
1 // Copyright (c) 2010 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 #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 718 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
729 | 729 |
730 // Notification triggered when a web application has been installed or | 730 // Notification triggered when a web application has been installed or |
731 // uninstalled. Any application view should reload its data. The source is | 731 // uninstalled. Any application view should reload its data. The source is |
732 // the profile. No details are provided. | 732 // the profile. No details are provided. |
733 WEB_APP_INSTALL_CHANGED, | 733 WEB_APP_INSTALL_CHANGED, |
734 | 734 |
735 // This is sent to a pref observer when a pref is changed. The source is the | 735 // This is sent to a pref observer when a pref is changed. The source is the |
736 // PrefService and the details a std::string of the changed path. | 736 // PrefService and the details a std::string of the changed path. |
737 PREF_CHANGED, | 737 PREF_CHANGED, |
738 | 738 |
| 739 // This is broadcast after the preference subsystem has completed |
| 740 // asynchronous initalization of a PrefService. |
| 741 PREF_INITIALIZATION_COMPLETED, |
| 742 |
739 // Sent when a default request context has been created, so calling | 743 // Sent when a default request context has been created, so calling |
740 // Profile::GetDefaultRequestContext() will not return NULL. This is sent | 744 // Profile::GetDefaultRequestContext() will not return NULL. This is sent |
741 // on the thread where Profile::GetRequestContext() is first called, which | 745 // on the thread where Profile::GetRequestContext() is first called, which |
742 // should be the UI thread. | 746 // should be the UI thread. |
743 DEFAULT_REQUEST_CONTEXT_AVAILABLE, | 747 DEFAULT_REQUEST_CONTEXT_AVAILABLE, |
744 | 748 |
745 // The state of a web resource has been changed. A resource may have been | 749 // The state of a web resource has been changed. A resource may have been |
746 // added, removed, or altered. Source is WebResourceService, and the | 750 // added, removed, or altered. Source is WebResourceService, and the |
747 // details are NoDetails. | 751 // details are NoDetails. |
748 WEB_RESOURCE_STATE_CHANGED, | 752 WEB_RESOURCE_STATE_CHANGED, |
(...skipping 573 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1322 }; | 1326 }; |
1323 | 1327 |
1324 inline bool operator==(NotificationType::Type a, NotificationType b) { | 1328 inline bool operator==(NotificationType::Type a, NotificationType b) { |
1325 return a == b.value; | 1329 return a == b.value; |
1326 } | 1330 } |
1327 inline bool operator!=(NotificationType::Type a, NotificationType b) { | 1331 inline bool operator!=(NotificationType::Type a, NotificationType b) { |
1328 return a != b.value; | 1332 return a != b.value; |
1329 } | 1333 } |
1330 | 1334 |
1331 #endif // CHROME_COMMON_NOTIFICATION_TYPE_H_ | 1335 #endif // CHROME_COMMON_NOTIFICATION_TYPE_H_ |
OLD | NEW |