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 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 762 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
773 | 773 |
774 // Sent when a default request context has been created, so calling | 774 // Sent when a default request context has been created, so calling |
775 // Profile::GetDefaultRequestContext() will not return NULL. This is sent | 775 // Profile::GetDefaultRequestContext() will not return NULL. This is sent |
776 // on the thread where Profile::GetRequestContext() is first called, which | 776 // on the thread where Profile::GetRequestContext() is first called, which |
777 // should be the UI thread. | 777 // should be the UI thread. |
778 DEFAULT_REQUEST_CONTEXT_AVAILABLE, | 778 DEFAULT_REQUEST_CONTEXT_AVAILABLE, |
779 | 779 |
780 // The state of a web resource has been changed. A resource may have been | 780 // The state of a web resource has been changed. A resource may have been |
781 // added, removed, or altered. Source is WebResourceService, and the | 781 // added, removed, or altered. Source is WebResourceService, and the |
782 // details are NoDetails. | 782 // details are NoDetails. |
783 WEB_RESOURCE_STATE_CHANGED, | 783 PROMO_RESOURCE_STATE_CHANGED, |
784 | 784 |
785 // Autocomplete ------------------------------------------------------------ | 785 // Autocomplete ------------------------------------------------------------ |
786 | 786 |
787 // Sent by the autocomplete controller at least once per query, each time | 787 // Sent by the autocomplete controller at least once per query, each time |
788 // new matches are available, subject to rate-limiting/coalescing to reduce | 788 // new matches are available, subject to rate-limiting/coalescing to reduce |
789 // the number of updates. The details hold the AutocompleteResult that | 789 // the number of updates. The details hold the AutocompleteResult that |
790 // observers should use if they want to see the updated matches. | 790 // observers should use if they want to see the updated matches. |
791 AUTOCOMPLETE_CONTROLLER_RESULT_UPDATED, | 791 AUTOCOMPLETE_CONTROLLER_RESULT_UPDATED, |
792 | 792 |
793 // Sent by the autocomplete controller immediately after synchronous matches | 793 // Sent by the autocomplete controller immediately after synchronous matches |
(...skipping 542 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1336 }; | 1336 }; |
1337 | 1337 |
1338 inline bool operator==(NotificationType::Type a, NotificationType b) { | 1338 inline bool operator==(NotificationType::Type a, NotificationType b) { |
1339 return a == b.value; | 1339 return a == b.value; |
1340 } | 1340 } |
1341 inline bool operator!=(NotificationType::Type a, NotificationType b) { | 1341 inline bool operator!=(NotificationType::Type a, NotificationType b) { |
1342 return a != b.value; | 1342 return a != b.value; |
1343 } | 1343 } |
1344 | 1344 |
1345 #endif // CHROME_COMMON_NOTIFICATION_TYPE_H_ | 1345 #endif // CHROME_COMMON_NOTIFICATION_TYPE_H_ |
OLD | NEW |