OLD | NEW |
---|---|
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 CONTENT_COMMON_NOTIFICATION_TYPE_H_ | 5 #ifndef CONTENT_COMMON_NOTIFICATION_TYPE_H_ |
6 #define CONTENT_COMMON_NOTIFICATION_TYPE_H_ | 6 #define CONTENT_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 728 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
739 WEB_APP_INSTALL_CHANGED, | 739 WEB_APP_INSTALL_CHANGED, |
740 | 740 |
741 // This is sent to a pref observer when a pref is changed. The source is the | 741 // This is sent to a pref observer when a pref is changed. The source is the |
742 // PrefService and the details a std::string of the changed path. | 742 // PrefService and the details a std::string of the changed path. |
743 PREF_CHANGED, | 743 PREF_CHANGED, |
744 | 744 |
745 // This is broadcast after the preference subsystem has completed | 745 // This is broadcast after the preference subsystem has completed |
746 // asynchronous initalization of a PrefService. | 746 // asynchronous initalization of a PrefService. |
747 PREF_INITIALIZATION_COMPLETED, | 747 PREF_INITIALIZATION_COMPLETED, |
748 | 748 |
749 // This is broadcast after the preference subsystem has failed to load a | |
750 // PrefService. | |
751 PREF_INITIALIZATION_FAILED, | |
Mattias Nissler (ping if slow)
2011/04/27 12:16:30
As mention elsewhere, I think it's much better to
altimofeev
2011/05/04 13:46:14
Done.
| |
752 | |
749 // Sent when a default request context has been created, so calling | 753 // Sent when a default request context has been created, so calling |
750 // Profile::GetDefaultRequestContext() will not return NULL. This is sent | 754 // Profile::GetDefaultRequestContext() will not return NULL. This is sent |
751 // on the thread where Profile::GetRequestContext() is first called, which | 755 // on the thread where Profile::GetRequestContext() is first called, which |
752 // should be the UI thread. | 756 // should be the UI thread. |
753 DEFAULT_REQUEST_CONTEXT_AVAILABLE, | 757 DEFAULT_REQUEST_CONTEXT_AVAILABLE, |
754 | 758 |
755 // The state of a web resource has been changed. A resource may have been | 759 // The state of a web resource has been changed. A resource may have been |
756 // added, removed, or altered. Source is WebResourceService, and the | 760 // added, removed, or altered. Source is WebResourceService, and the |
757 // details are NoDetails. | 761 // details are NoDetails. |
758 PROMO_RESOURCE_STATE_CHANGED, | 762 PROMO_RESOURCE_STATE_CHANGED, |
(...skipping 581 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1340 }; | 1344 }; |
1341 | 1345 |
1342 inline bool operator==(NotificationType::Type a, NotificationType b) { | 1346 inline bool operator==(NotificationType::Type a, NotificationType b) { |
1343 return a == b.value; | 1347 return a == b.value; |
1344 } | 1348 } |
1345 inline bool operator!=(NotificationType::Type a, NotificationType b) { | 1349 inline bool operator!=(NotificationType::Type a, NotificationType b) { |
1346 return a != b.value; | 1350 return a != b.value; |
1347 } | 1351 } |
1348 | 1352 |
1349 #endif // CONTENT_COMMON_NOTIFICATION_TYPE_H_ | 1353 #endif // CONTENT_COMMON_NOTIFICATION_TYPE_H_ |
OLD | NEW |