| 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 652 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 663 // Sent before a Profile is destroyed. The details are | 663 // Sent before a Profile is destroyed. The details are |
| 664 // none and the source is a Profile*. | 664 // none and the source is a Profile*. |
| 665 PROFILE_DESTROYED, | 665 PROFILE_DESTROYED, |
| 666 | 666 |
| 667 // TopSites ---------------------------------------------------------------- | 667 // TopSites ---------------------------------------------------------------- |
| 668 | 668 |
| 669 // Sent by TopSites when it finishes loading. The source is the profile the | 669 // Sent by TopSites when it finishes loading. The source is the profile the |
| 670 // details the TopSites. | 670 // details the TopSites. |
| 671 TOP_SITES_LOADED, | 671 TOP_SITES_LOADED, |
| 672 | 672 |
| 673 // Sent by TopSites when it has finished updating its most visited URLs |
| 674 // cache after querying the history service. The source is the TopSites and |
| 675 // the details a CancelableRequestProvider::Handle from the history service |
| 676 // query. |
| 677 // Used only in testing. |
| 678 TOP_SITES_UPDATED, |
| 679 |
| 673 // Thumbnails--------------------------------------------------------------- | 680 // Thumbnails--------------------------------------------------------------- |
| 674 | 681 |
| 675 // Sent by the ThumbnailGenerator whenever a render widget host | 682 // Sent by the ThumbnailGenerator whenever a render widget host |
| 676 // updates its backing store. The source is the | 683 // updates its backing store. The source is the |
| 677 // ThumbnailGenerator, and the details are the RenderWidgetHost | 684 // ThumbnailGenerator, and the details are the RenderWidgetHost |
| 678 // that notified the ThumbnailGenerator that its backing store was | 685 // that notified the ThumbnailGenerator that its backing store was |
| 679 // updated. | 686 // updated. |
| 680 THUMBNAIL_GENERATOR_SNAPSHOT_CHANGED, | 687 THUMBNAIL_GENERATOR_SNAPSHOT_CHANGED, |
| 681 | 688 |
| 682 // Bookmarks --------------------------------------------------------------- | 689 // Bookmarks --------------------------------------------------------------- |
| (...skipping 609 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1292 }; | 1299 }; |
| 1293 | 1300 |
| 1294 inline bool operator==(NotificationType::Type a, NotificationType b) { | 1301 inline bool operator==(NotificationType::Type a, NotificationType b) { |
| 1295 return a == b.value; | 1302 return a == b.value; |
| 1296 } | 1303 } |
| 1297 inline bool operator!=(NotificationType::Type a, NotificationType b) { | 1304 inline bool operator!=(NotificationType::Type a, NotificationType b) { |
| 1298 return a != b.value; | 1305 return a != b.value; |
| 1299 } | 1306 } |
| 1300 | 1307 |
| 1301 #endif // CHROME_COMMON_NOTIFICATION_TYPE_H_ | 1308 #endif // CHROME_COMMON_NOTIFICATION_TYPE_H_ |
| OLD | NEW |