| 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 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 131 // are provided. | 131 // are provided. |
| 132 LOAD_FROM_MEMORY_CACHE, | 132 LOAD_FROM_MEMORY_CACHE, |
| 133 | 133 |
| 134 // A provisional content load has failed with an error. The source will be | 134 // A provisional content load has failed with an error. The source will be |
| 135 // a Source<NavigationController> corresponding to the tab in which the | 135 // a Source<NavigationController> corresponding to the tab in which the |
| 136 // load occurred. Details in the form of a ProvisionalLoadDetails object | 136 // load occurred. Details in the form of a ProvisionalLoadDetails object |
| 137 // are provided. | 137 // are provided. |
| 138 FAIL_PROVISIONAL_LOAD_WITH_ERROR, | 138 FAIL_PROVISIONAL_LOAD_WITH_ERROR, |
| 139 | 139 |
| 140 // A response has been received for a resource request. The source will be | 140 // A response has been received for a resource request. The source will be |
| 141 // a Source<NavigationController> corresponding to the tab in which the | 141 // a Source<RenderViewHostDelegate> corresponding to the tab in which the |
| 142 // request was issued. Details in the form of a ResourceRequestDetails | 142 // request was issued. Details in the form of a ResourceRequestDetails |
| 143 // object are provided. | 143 // object are provided. |
| 144 RESOURCE_RESPONSE_STARTED, | 144 RESOURCE_RESPONSE_STARTED, |
| 145 | 145 |
| 146 // A redirect was received while requesting a resource. The source will be | 146 // A redirect was received while requesting a resource. The source will be |
| 147 // a Source<NavigationController> corresponding to the tab in which the | 147 // a Source<RenderViewHostDelegate> corresponding to the tab in which the |
| 148 // request was issued. Details in the form of a ResourceRedirectDetails | 148 // request was issued. Details in the form of a ResourceRedirectDetails |
| 149 // are provided. | 149 // are provided. |
| 150 RESOURCE_RECEIVED_REDIRECT, | 150 RESOURCE_RECEIVED_REDIRECT, |
| 151 | 151 |
| 152 // SSL --------------------------------------------------------------------- | 152 // SSL --------------------------------------------------------------------- |
| 153 | 153 |
| 154 // Updating the SSL security indicators (the lock icon and such) proceeds | 154 // Updating the SSL security indicators (the lock icon and such) proceeds |
| 155 // in two phases: | 155 // in two phases: |
| 156 // | 156 // |
| 157 // 1) The internal SSL state for a host or tab changes. When this happens, | 157 // 1) The internal SSL state for a host or tab changes. When this happens, |
| (...skipping 1156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1314 }; | 1314 }; |
| 1315 | 1315 |
| 1316 inline bool operator==(NotificationType::Type a, NotificationType b) { | 1316 inline bool operator==(NotificationType::Type a, NotificationType b) { |
| 1317 return a == b.value; | 1317 return a == b.value; |
| 1318 } | 1318 } |
| 1319 inline bool operator!=(NotificationType::Type a, NotificationType b) { | 1319 inline bool operator!=(NotificationType::Type a, NotificationType b) { |
| 1320 return a != b.value; | 1320 return a != b.value; |
| 1321 } | 1321 } |
| 1322 | 1322 |
| 1323 #endif // CHROME_COMMON_NOTIFICATION_TYPE_H_ | 1323 #endif // CHROME_COMMON_NOTIFICATION_TYPE_H_ |
| OLD | NEW |