| 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 755 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 766 | 766 |
| 767 // Sent when the main Google URL has been updated. Some services cache | 767 // Sent when the main Google URL has been updated. Some services cache |
| 768 // this value and need to update themselves when it changes. See | 768 // this value and need to update themselves when it changes. See |
| 769 // google_util::GetGoogleURLAndUpdateIfNecessary(). | 769 // google_util::GetGoogleURLAndUpdateIfNecessary(). |
| 770 GOOGLE_URL_UPDATED, | 770 GOOGLE_URL_UPDATED, |
| 771 | 771 |
| 772 // Printing ---------------------------------------------------------------- | 772 // Printing ---------------------------------------------------------------- |
| 773 | 773 |
| 774 // Notification from PrintJob that an event occured. It can be that a page | 774 // Notification from PrintJob that an event occured. It can be that a page |
| 775 // finished printing or that the print job failed. Details is | 775 // finished printing or that the print job failed. Details is |
| 776 // PrintJob::EventDetails. | 776 // PrintJob::EventDetails. Source is a PrintJob. |
| 777 PRINT_JOB_EVENT, | 777 PRINT_JOB_EVENT, |
| 778 | 778 |
| 779 // Sent when a PrintJob has been released. |
| 780 // Source is the TabContents that holds the print job. |
| 781 PRINT_JOB_RELEASED, |
| 782 |
| 779 // Shutdown ---------------------------------------------------------------- | 783 // Shutdown ---------------------------------------------------------------- |
| 780 | 784 |
| 781 // Sent on the browser IO thread when an net::URLRequestContext is released | 785 // Sent on the browser IO thread when an net::URLRequestContext is released |
| 782 // by its owning Profile. The source is a pointer to the | 786 // by its owning Profile. The source is a pointer to the |
| 783 // net::URLRequestContext. | 787 // net::URLRequestContext. |
| 784 URL_REQUEST_CONTEXT_RELEASED, | 788 URL_REQUEST_CONTEXT_RELEASED, |
| 785 | 789 |
| 786 // Sent when WM_ENDSESSION has been received, after the browsers have been | 790 // Sent when WM_ENDSESSION has been received, after the browsers have been |
| 787 // closed but before browser process has been shutdown. The source/details | 791 // closed but before browser process has been shutdown. The source/details |
| 788 // are all source and no details. | 792 // are all source and no details. |
| (...skipping 537 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1326 }; | 1330 }; |
| 1327 | 1331 |
| 1328 inline bool operator==(NotificationType::Type a, NotificationType b) { | 1332 inline bool operator==(NotificationType::Type a, NotificationType b) { |
| 1329 return a == b.value; | 1333 return a == b.value; |
| 1330 } | 1334 } |
| 1331 inline bool operator!=(NotificationType::Type a, NotificationType b) { | 1335 inline bool operator!=(NotificationType::Type a, NotificationType b) { |
| 1332 return a != b.value; | 1336 return a != b.value; |
| 1333 } | 1337 } |
| 1334 | 1338 |
| 1335 #endif // CONTENT_COMMON_NOTIFICATION_TYPE_H_ | 1339 #endif // CONTENT_COMMON_NOTIFICATION_TYPE_H_ |
| OLD | NEW |