| 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 664 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 675 // | 675 // |
| 676 // The source is the profile owning the history service that changed, and | 676 // The source is the profile owning the history service that changed, and |
| 677 // the details is history::URLsDeletedDetails that lists the deleted URLs. | 677 // the details is history::URLsDeletedDetails that lists the deleted URLs. |
| 678 HISTORY_URLS_DELETED, | 678 HISTORY_URLS_DELETED, |
| 679 | 679 |
| 680 // Sent when a keyword search term is updated. The source is the Profile and | 680 // Sent when a keyword search term is updated. The source is the Profile and |
| 681 // the details are history::KeywordSearchTermDetails | 681 // the details are history::KeywordSearchTermDetails |
| 682 HISTORY_KEYWORD_SEARCH_TERM_UPDATED, | 682 HISTORY_KEYWORD_SEARCH_TERM_UPDATED, |
| 683 | 683 |
| 684 // Sent by history when the favicon of a URL changes. The source is the | 684 // Sent by history when the favicon of a URL changes. The source is the |
| 685 // profile, and the details is history::FavIconChangeDetails (see | 685 // profile, and the details is history::FaviconChangeDetails (see |
| 686 // history_notifications.h). | 686 // history_notifications.h). |
| 687 FAVICON_CHANGED, | 687 FAVICON_CHANGED, |
| 688 | 688 |
| 689 // Sent by history if there is a problem reading the profile. The details | 689 // Sent by history if there is a problem reading the profile. The details |
| 690 // is an int that's one of the message IDs in the string table. The active | 690 // is an int that's one of the message IDs in the string table. The active |
| 691 // browser window should notify the user of this error. | 691 // browser window should notify the user of this error. |
| 692 PROFILE_ERROR, | 692 PROFILE_ERROR, |
| 693 | 693 |
| 694 // Sent after an incognito profile has been created. The details are none | 694 // Sent after an incognito profile has been created. The details are none |
| 695 // and the source is the new profile. | 695 // and the source is the new profile. |
| (...skipping 628 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1324 }; | 1324 }; |
| 1325 | 1325 |
| 1326 inline bool operator==(NotificationType::Type a, NotificationType b) { | 1326 inline bool operator==(NotificationType::Type a, NotificationType b) { |
| 1327 return a == b.value; | 1327 return a == b.value; |
| 1328 } | 1328 } |
| 1329 inline bool operator!=(NotificationType::Type a, NotificationType b) { | 1329 inline bool operator!=(NotificationType::Type a, NotificationType b) { |
| 1330 return a != b.value; | 1330 return a != b.value; |
| 1331 } | 1331 } |
| 1332 | 1332 |
| 1333 #endif // CONTENT_COMMON_NOTIFICATION_TYPE_H_ | 1333 #endif // CONTENT_COMMON_NOTIFICATION_TYPE_H_ |
| OLD | NEW |