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 774 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
785 GOOGLE_URL_UPDATED, | 785 GOOGLE_URL_UPDATED, |
786 | 786 |
787 // Printing ---------------------------------------------------------------- | 787 // Printing ---------------------------------------------------------------- |
788 | 788 |
789 // Notification from PrintJob that an event occured. It can be that a page | 789 // Notification from PrintJob that an event occured. It can be that a page |
790 // finished printing or that the print job failed. Details is | 790 // finished printing or that the print job failed. Details is |
791 // PrintJob::EventDetails. Source is a PrintJob. | 791 // PrintJob::EventDetails. Source is a PrintJob. |
792 PRINT_JOB_EVENT, | 792 PRINT_JOB_EVENT, |
793 | 793 |
794 // Sent when a PrintJob has been released. | 794 // Sent when a PrintJob has been released. |
795 // Source is the TabContents that holds the print job. | 795 // Source is the TabContentsWrapper that holds the print job. |
796 PRINT_JOB_RELEASED, | 796 PRINT_JOB_RELEASED, |
797 | 797 |
798 // Shutdown ---------------------------------------------------------------- | 798 // Shutdown ---------------------------------------------------------------- |
799 | 799 |
800 // Sent on the browser IO thread when an net::URLRequestContext is released | 800 // Sent on the browser IO thread when an net::URLRequestContext is released |
801 // by its owning Profile. The source is a pointer to the | 801 // by its owning Profile. The source is a pointer to the |
802 // net::URLRequestContext. | 802 // net::URLRequestContext. |
803 URL_REQUEST_CONTEXT_RELEASED, | 803 URL_REQUEST_CONTEXT_RELEASED, |
804 | 804 |
805 // Sent when WM_ENDSESSION has been received, after the browsers have been | 805 // Sent when WM_ENDSESSION has been received, after the browsers have been |
(...skipping 529 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1335 }; | 1335 }; |
1336 | 1336 |
1337 inline bool operator==(NotificationType::Type a, NotificationType b) { | 1337 inline bool operator==(NotificationType::Type a, NotificationType b) { |
1338 return a == b.value; | 1338 return a == b.value; |
1339 } | 1339 } |
1340 inline bool operator!=(NotificationType::Type a, NotificationType b) { | 1340 inline bool operator!=(NotificationType::Type a, NotificationType b) { |
1341 return a != b.value; | 1341 return a != b.value; |
1342 } | 1342 } |
1343 | 1343 |
1344 #endif // CONTENT_COMMON_NOTIFICATION_TYPE_H_ | 1344 #endif // CONTENT_COMMON_NOTIFICATION_TYPE_H_ |
OLD | NEW |