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 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 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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<RenderViewHostDelegate> 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 // A new window is created in response to a request from a renderer. The |
| 153 // source will be a Source<TabContents> corresponding to the tab the |
| 154 // request originates from. Details in the form of a |
| 155 // ViewHostMsg_CreateWindow_Params object are provided. |
| 156 CREATING_NEW_WINDOW, |
| 157 |
152 // SSL --------------------------------------------------------------------- | 158 // SSL --------------------------------------------------------------------- |
153 | 159 |
154 // Updating the SSL security indicators (the lock icon and such) proceeds | 160 // Updating the SSL security indicators (the lock icon and such) proceeds |
155 // in two phases: | 161 // in two phases: |
156 // | 162 // |
157 // 1) The internal SSL state for a host or tab changes. When this happens, | 163 // 1) The internal SSL state for a host or tab changes. When this happens, |
158 // the SSLManager broadcasts an SSL_INTERNAL_STATE_CHANGED notification. | 164 // the SSLManager broadcasts an SSL_INTERNAL_STATE_CHANGED notification. |
159 // | 165 // |
160 // 2) The SSLManager for each tab receives this notification and might or | 166 // 2) The SSLManager for each tab receives this notification and might or |
161 // might not update the navigation entry for its tab, depending on | 167 // might not update the navigation entry for its tab, depending on |
(...skipping 1157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1319 }; | 1325 }; |
1320 | 1326 |
1321 inline bool operator==(NotificationType::Type a, NotificationType b) { | 1327 inline bool operator==(NotificationType::Type a, NotificationType b) { |
1322 return a == b.value; | 1328 return a == b.value; |
1323 } | 1329 } |
1324 inline bool operator!=(NotificationType::Type a, NotificationType b) { | 1330 inline bool operator!=(NotificationType::Type a, NotificationType b) { |
1325 return a != b.value; | 1331 return a != b.value; |
1326 } | 1332 } |
1327 | 1333 |
1328 #endif // CHROME_COMMON_NOTIFICATION_TYPE_H_ | 1334 #endif // CHROME_COMMON_NOTIFICATION_TYPE_H_ |
OLD | NEW |