| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 | 7 |
| 8 // This file describes various types used to describe and filter notifications | 8 // This file describes various types used to describe and filter notifications |
| 9 // that pass through the NotificationService. | 9 // that pass through the NotificationService. |
| 10 // | 10 // |
| 11 // It is written as an enum inside a class so that it can be forward declared. | 11 // It is written as an enum inside a class so that it can be forward declared. |
| (...skipping 367 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 379 // with a pointer to the TabContents. Details encompass a | 379 // with a pointer to the TabContents. Details encompass a |
| 380 // FindNotificationDetail object that tells whether the match was found or | 380 // FindNotificationDetail object that tells whether the match was found or |
| 381 // not found. | 381 // not found. |
| 382 FIND_RESULT_AVAILABLE, | 382 FIND_RESULT_AVAILABLE, |
| 383 | 383 |
| 384 // This is sent when the users preference for when the bookmark bar should | 384 // This is sent when the users preference for when the bookmark bar should |
| 385 // be shown changes. The source is the profile, and the details are | 385 // be shown changes. The source is the profile, and the details are |
| 386 // NoDetails. | 386 // NoDetails. |
| 387 BOOKMARK_BAR_VISIBILITY_PREF_CHANGED, | 387 BOOKMARK_BAR_VISIBILITY_PREF_CHANGED, |
| 388 | 388 |
| 389 // This is sent when the user's preference (for when the extension shelf |
| 390 // should be shown) changes. The source is the profile, and the details are |
| 391 // NoDetails. |
| 392 EXTENSION_SHELF_VISIBILITY_PREF_CHANGED, |
| 393 |
| 389 // Used to monitor web cache usage by notifying whenever the | 394 // Used to monitor web cache usage by notifying whenever the |
| 390 // CacheManagerHost observes new UsageStats. The source will be the | 395 // CacheManagerHost observes new UsageStats. The source will be the |
| 391 // RenderProcessHost that corresponds to the new statistics. Details are a | 396 // RenderProcessHost that corresponds to the new statistics. Details are a |
| 392 // UsageStats object sent by the renderer, and should be copied - ptr not | 397 // UsageStats object sent by the renderer, and should be copied - ptr not |
| 393 // guaranteed to be valid after the notification. | 398 // guaranteed to be valid after the notification. |
| 394 WEB_CACHE_STATS_OBSERVED, | 399 WEB_CACHE_STATS_OBSERVED, |
| 395 | 400 |
| 396 // Child Processes --------------------------------------------------------- | 401 // Child Processes --------------------------------------------------------- |
| 397 | 402 |
| 398 // This notification is sent when a child process host has connected to a | 403 // This notification is sent when a child process host has connected to a |
| (...skipping 281 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 680 }; | 685 }; |
| 681 | 686 |
| 682 inline bool operator==(NotificationType::Type a, NotificationType b) { | 687 inline bool operator==(NotificationType::Type a, NotificationType b) { |
| 683 return a == b.value; | 688 return a == b.value; |
| 684 } | 689 } |
| 685 inline bool operator!=(NotificationType::Type a, NotificationType b) { | 690 inline bool operator!=(NotificationType::Type a, NotificationType b) { |
| 686 return a != b.value; | 691 return a != b.value; |
| 687 } | 692 } |
| 688 | 693 |
| 689 #endif // CHROME_COMMON_NOTIFICATION_TYPE_H_ | 694 #endif // CHROME_COMMON_NOTIFICATION_TYPE_H_ |
| OLD | NEW |