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 724 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 // Sent when a default request context has been created, so calling | 739 // Sent when a default request context has been created, so calling |
740 // Profile::GetDefaultRequestContext() will not return NULL. This is sent | 740 // Profile::GetDefaultRequestContext() will not return NULL. This is sent |
741 // on the thread where Profile::GetRequestContext() is first called, which | 741 // on the thread where Profile::GetRequestContext() is first called, which |
742 // should be the UI thread. | 742 // should be the UI thread. |
743 DEFAULT_REQUEST_CONTEXT_AVAILABLE, | 743 DEFAULT_REQUEST_CONTEXT_AVAILABLE, |
744 | 744 |
745 // A new web resource has been made available. Source is the | 745 // The state of a web resource has been changed. A resource may have been |
746 // WebResourceService, and the details are NoDetails. | 746 // added, removed, or altered. Source is WebResourceService, and the |
747 WEB_RESOURCE_AVAILABLE, | 747 // details are NoDetails. |
| 748 WEB_RESOURCE_STATE_CHANGED, |
748 | 749 |
749 // Autocomplete ------------------------------------------------------------ | 750 // Autocomplete ------------------------------------------------------------ |
750 | 751 |
751 // Sent by the autocomplete controller at least once per query, each time | 752 // Sent by the autocomplete controller at least once per query, each time |
752 // new matches are available, subject to rate-limiting/coalescing to reduce | 753 // new matches are available, subject to rate-limiting/coalescing to reduce |
753 // the number of updates. The details hold the AutocompleteResult that | 754 // the number of updates. The details hold the AutocompleteResult that |
754 // observers should use if they want to see the updated matches. | 755 // observers should use if they want to see the updated matches. |
755 AUTOCOMPLETE_CONTROLLER_RESULT_UPDATED, | 756 AUTOCOMPLETE_CONTROLLER_RESULT_UPDATED, |
756 | 757 |
757 // Sent by the autocomplete controller immediately after synchronous matches | 758 // Sent by the autocomplete controller immediately after synchronous matches |
(...skipping 552 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1310 }; | 1311 }; |
1311 | 1312 |
1312 inline bool operator==(NotificationType::Type a, NotificationType b) { | 1313 inline bool operator==(NotificationType::Type a, NotificationType b) { |
1313 return a == b.value; | 1314 return a == b.value; |
1314 } | 1315 } |
1315 inline bool operator!=(NotificationType::Type a, NotificationType b) { | 1316 inline bool operator!=(NotificationType::Type a, NotificationType b) { |
1316 return a != b.value; | 1317 return a != b.value; |
1317 } | 1318 } |
1318 | 1319 |
1319 #endif // CHROME_COMMON_NOTIFICATION_TYPE_H_ | 1320 #endif // CHROME_COMMON_NOTIFICATION_TYPE_H_ |
OLD | NEW |