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 757 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
768 WEB_APP_INSTALL_CHANGED, | 768 WEB_APP_INSTALL_CHANGED, |
769 | 769 |
770 // This is sent to a pref observer when a pref is changed. The source is the | 770 // This is sent to a pref observer when a pref is changed. The source is the |
771 // PrefService and the details a std::string of the changed path. | 771 // PrefService and the details a std::string of the changed path. |
772 PREF_CHANGED, | 772 PREF_CHANGED, |
773 | 773 |
774 // This is broadcast after the preference subsystem has completed | 774 // This is broadcast after the preference subsystem has completed |
775 // asynchronous initalization of a PrefService. | 775 // asynchronous initalization of a PrefService. |
776 PREF_INITIALIZATION_COMPLETED, | 776 PREF_INITIALIZATION_COMPLETED, |
777 | 777 |
| 778 #if defined(OS_CHROMEOS) |
| 779 // Sent after successful write of persistent preferences or if there is |
| 780 // nothing to write on CommitPendingWrite call. Source is PrefService. |
| 781 PREF_COMMITTED, |
| 782 #endif |
| 783 |
778 // Sent when a default request context has been created, so calling | 784 // Sent when a default request context has been created, so calling |
779 // Profile::GetDefaultRequestContext() will not return NULL. This is sent | 785 // Profile::GetDefaultRequestContext() will not return NULL. This is sent |
780 // on the thread where Profile::GetRequestContext() is first called, which | 786 // on the thread where Profile::GetRequestContext() is first called, which |
781 // should be the UI thread. | 787 // should be the UI thread. |
782 DEFAULT_REQUEST_CONTEXT_AVAILABLE, | 788 DEFAULT_REQUEST_CONTEXT_AVAILABLE, |
783 | 789 |
784 // The state of a web resource has been changed. A resource may have been | 790 // The state of a web resource has been changed. A resource may have been |
785 // added, removed, or altered. Source is WebResourceService, and the | 791 // added, removed, or altered. Source is WebResourceService, and the |
786 // details are NoDetails. | 792 // details are NoDetails. |
787 PROMO_RESOURCE_STATE_CHANGED, | 793 PROMO_RESOURCE_STATE_CHANGED, |
(...skipping 556 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1344 }; | 1350 }; |
1345 | 1351 |
1346 inline bool operator==(NotificationType::Type a, NotificationType b) { | 1352 inline bool operator==(NotificationType::Type a, NotificationType b) { |
1347 return a == b.value; | 1353 return a == b.value; |
1348 } | 1354 } |
1349 inline bool operator!=(NotificationType::Type a, NotificationType b) { | 1355 inline bool operator!=(NotificationType::Type a, NotificationType b) { |
1350 return a != b.value; | 1356 return a != b.value; |
1351 } | 1357 } |
1352 | 1358 |
1353 #endif // CONTENT_COMMON_NOTIFICATION_TYPE_H_ | 1359 #endif // CONTENT_COMMON_NOTIFICATION_TYPE_H_ |
OLD | NEW |