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 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
176 | 176 |
177 // The SSL state of the browser has changed in some internal way. For | 177 // The SSL state of the browser has changed in some internal way. For |
178 // example, the user might have explicitly allowed some broken certificate | 178 // example, the user might have explicitly allowed some broken certificate |
179 // or a secure origin might have included some insecure content. Listen to | 179 // or a secure origin might have included some insecure content. Listen to |
180 // this notifiation if you need to keep track of our internal SSL state. | 180 // this notifiation if you need to keep track of our internal SSL state. |
181 // | 181 // |
182 // The source will be the navigation controller associated with the state | 182 // The source will be the navigation controller associated with the state |
183 // change. There are no details. | 183 // change. There are no details. |
184 SSL_INTERNAL_STATE_CHANGED, | 184 SSL_INTERNAL_STATE_CHANGED, |
185 | 185 |
186 // Lets resource handlers and other interested observers know when the | |
187 // message filter is being deleted and can no longer be used. This will | |
188 // also get sent if the renderer crashes (and in that case, it'll be sent | |
189 // twice). | |
190 RESOURCE_MESSAGE_FILTER_SHUTDOWN, | |
191 | |
192 // Lets interested observers know when a WorkerProcessHost is being deleted | |
193 // and can no longer be used. | |
194 WORKER_PROCESS_HOST_SHUTDOWN, | |
195 | |
196 // Views ------------------------------------------------------------------- | 186 // Views ------------------------------------------------------------------- |
197 | 187 |
198 // Notification that a view was removed from a view hierarchy. The source | 188 // Notification that a view was removed from a view hierarchy. The source |
199 // is the view, the details is the parent view. | 189 // is the view, the details is the parent view. |
200 VIEW_REMOVED, | 190 VIEW_REMOVED, |
201 | 191 |
202 // Browser-window ---------------------------------------------------------- | 192 // Browser-window ---------------------------------------------------------- |
203 | 193 |
204 // This message is sent after a window has been opened. The source is a | 194 // This message is sent after a window has been opened. The source is a |
205 // Source<Browser> containing the affected Browser. No details are | 195 // Source<Browser> containing the affected Browser. No details are |
(...skipping 1134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1340 }; | 1330 }; |
1341 | 1331 |
1342 inline bool operator==(NotificationType::Type a, NotificationType b) { | 1332 inline bool operator==(NotificationType::Type a, NotificationType b) { |
1343 return a == b.value; | 1333 return a == b.value; |
1344 } | 1334 } |
1345 inline bool operator!=(NotificationType::Type a, NotificationType b) { | 1335 inline bool operator!=(NotificationType::Type a, NotificationType b) { |
1346 return a != b.value; | 1336 return a != b.value; |
1347 } | 1337 } |
1348 | 1338 |
1349 #endif // CHROME_COMMON_NOTIFICATION_TYPE_H_ | 1339 #endif // CHROME_COMMON_NOTIFICATION_TYPE_H_ |
OLD | NEW |