Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 | 7 |
| 8 // This file describes various types used to describe and filter notifications | 8 // This file describes various types used to describe and filter notifications |
| 9 // that pass through the NotificationService. | 9 // that pass through the NotificationService. |
| 10 // | 10 // |
| (...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 125 // request was issued. Details in the form of a ResourceRequestDetails | 125 // request was issued. Details in the form of a ResourceRequestDetails |
| 126 // object are provided. | 126 // object are provided. |
| 127 RESOURCE_RESPONSE_COMPLETED, | 127 RESOURCE_RESPONSE_COMPLETED, |
| 128 | 128 |
| 129 // A redirect was received while requesting a resource. The source will be | 129 // A redirect was received while requesting a resource. The source will be |
| 130 // a Source<NavigationController> corresponding to the tab in which the | 130 // a Source<NavigationController> corresponding to the tab in which the |
| 131 // request was issued. Details in the form of a ResourceRedirectDetails | 131 // request was issued. Details in the form of a ResourceRedirectDetails |
| 132 // are provided. | 132 // are provided. |
| 133 RESOURCE_RECEIVED_REDIRECT, | 133 RESOURCE_RECEIVED_REDIRECT, |
| 134 | 134 |
| 135 // The SSL state of a page has changed somehow. For example, if an insecure | 135 // The SSL state of a page has changed in some visible way. For example, |
| 136 // resource is loaded on a secure page. Note that a toplevel load commit | 136 // if an insecure resource is loaded on a secure page. Note that a |
| 137 // will also update the SSL state (since the NavigationEntry is new) and | 137 // toplevel load commit will also update the SSL state (since the |
| 138 // this message won't always be sent in that case. | 138 // NavigationEntry is new) and this message won't always be sent in that |
| 139 // case. Listen to this notification if you need to refresh SSL-related UI | |
|
wtc
2009/03/17 17:59:08
I'm still not quite clear on the distinction betwe
abarth-chromium
2009/03/17 18:10:42
Updating the SSL UI will proceed in two phases:
1
| |
| 140 // elements. | |
| 139 // | 141 // |
| 140 // The source will be the navigation controller associated with the load. | 142 // The source will be the navigation controller associated with the load. |
| 141 // There are no details. The entry changed will be the active entry of the | 143 // There are no details. The entry changed will be the active entry of the |
| 142 // controller. | 144 // controller. |
| 143 SSL_STATE_CHANGED, | 145 SSL_VISIBLE_STATE_CHANGED, |
| 146 | |
| 147 // The SSL state of the browser has changed in some internal way. For | |
| 148 // example, the user might have explicitly allowed some broken certificate | |
| 149 // or a secure origin might have included some insecure content. Listen to | |
| 150 // this notifiation if you need to keep track of our internal SSL state. | |
| 151 // | |
| 152 // The source will be the navigation controller associated with the state | |
| 153 // change. There are no details. | |
| 154 SSL_INTERNAL_STATE_CHANGED, | |
| 144 | 155 |
| 145 // Download start and stop notifications. Stop notifications can occur on | 156 // Download start and stop notifications. Stop notifications can occur on |
| 146 // both normal completion or via a cancel operation. | 157 // both normal completion or via a cancel operation. |
| 147 DOWNLOAD_START, DOWNLOAD_STOP, | 158 DOWNLOAD_START, DOWNLOAD_STOP, |
| 148 | 159 |
| 149 // Views ------------------------------------------------------------------- | 160 // Views ------------------------------------------------------------------- |
| 150 | 161 |
| 151 // Notification that a view was removed from a view hierarchy. The source | 162 // Notification that a view was removed from a view hierarchy. The source |
| 152 // is the view, the details is the parent view. | 163 // is the view, the details is the parent view. |
| 153 VIEW_REMOVED, | 164 VIEW_REMOVED, |
| (...skipping 387 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 541 }; | 552 }; |
| 542 | 553 |
| 543 inline bool operator==(NotificationType::Type a, NotificationType b) { | 554 inline bool operator==(NotificationType::Type a, NotificationType b) { |
| 544 return a == b.value; | 555 return a == b.value; |
| 545 } | 556 } |
| 546 inline bool operator!=(NotificationType::Type a, NotificationType b) { | 557 inline bool operator!=(NotificationType::Type a, NotificationType b) { |
| 547 return a != b.value; | 558 return a != b.value; |
| 548 } | 559 } |
| 549 | 560 |
| 550 #endif // CHROME_COMMON_NOTIFICATION_TYPE_H_ | 561 #endif // CHROME_COMMON_NOTIFICATION_TYPE_H_ |
| OLD | NEW |