| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 124 // a Source<NavigationController> corresponding to the tab in which the | 124 // a Source<NavigationController> corresponding to the tab in which the |
| 125 // request was issued. Details in the form of a ResourceRedirectDetails | 125 // request was issued. Details in the form of a ResourceRedirectDetails |
| 126 // are provided. | 126 // are provided. |
| 127 RESOURCE_RECEIVED_REDIRECT, | 127 RESOURCE_RECEIVED_REDIRECT, |
| 128 | 128 |
| 129 // SSL --------------------------------------------------------------------- | 129 // SSL --------------------------------------------------------------------- |
| 130 | 130 |
| 131 // Updating the SSL security indicators (the lock icon and such) proceeds | 131 // Updating the SSL security indicators (the lock icon and such) proceeds |
| 132 // in two phases: | 132 // in two phases: |
| 133 // | 133 // |
| 134 // 1) An SSLManager changes the SSLHostState (which hangs off the profile | 134 // 1) The internal SSL state for a host or tab changes. When this happens, |
| 135 // object). When this happens, the SSLManager broadcasts an | 135 // the SSLManager broadcasts an SSL_INTERNAL_STATE_CHANGED notification. |
| 136 // SSL_INTERNAL_STATE_CHANGED notification. | |
| 137 // | 136 // |
| 138 // 2) The SSLManager for each tab receives this notification and might or | 137 // 2) The SSLManager for each tab receives this notification and might or |
| 139 // might not update the navigation entry for its tab, depending on | 138 // might not update the navigation entry for its tab, depending on |
| 140 // whether the change in SSLHostState affects that tab. If the | 139 // whether the change in state affects that tab. If the SSLManager does |
| 141 // SSLManager does change the navigation entry, then the SSLManager | 140 // change the navigation entry, then the SSLManager broadcasts an |
| 142 // broadcasts an SSL_VISIBLE_STATE_CHANGED notification to the user | 141 // SSL_VISIBLE_STATE_CHANGED notification to the user interface can |
| 143 // interface can redraw properly. | 142 // redraw properly. |
| 144 | 143 |
| 145 // The SSL state of a page has changed in some visible way. For example, | 144 // The SSL state of a page has changed in some visible way. For example, |
| 146 // if an insecure resource is loaded on a secure page. Note that a | 145 // if an insecure resource is loaded on a secure page. Note that a |
| 147 // toplevel load commit will also update the SSL state (since the | 146 // toplevel load commit will also update the SSL state (since the |
| 148 // NavigationEntry is new) and this message won't always be sent in that | 147 // NavigationEntry is new) and this message won't always be sent in that |
| 149 // case. Listen to this notification if you need to refresh SSL-related UI | 148 // case. Listen to this notification if you need to refresh SSL-related UI |
| 150 // elements. | 149 // elements. |
| 151 // | 150 // |
| 152 // The source will be the navigation controller associated with the load. | 151 // There is no source or details. |
| 153 // There are no details. The entry changed will be the active entry of the | |
| 154 // controller. | |
| 155 SSL_VISIBLE_STATE_CHANGED, | 152 SSL_VISIBLE_STATE_CHANGED, |
| 156 | 153 |
| 157 // The SSL state of the browser has changed in some internal way. For | 154 // The SSL state of the browser has changed in some internal way. For |
| 158 // example, the user might have explicitly allowed some broken certificate | 155 // example, the user might have explicitly allowed some broken certificate |
| 159 // or a secure origin might have included some insecure content. Listen to | 156 // or a secure origin might have included some insecure content. Listen to |
| 160 // this notifiation if you need to keep track of our internal SSL state. | 157 // this notifiation if you need to keep track of our internal SSL state. |
| 161 // | 158 // |
| 162 // The source will be the navigation controller associated with the state | 159 // The source will be the navigation controller associated with the state |
| 163 // change. There are no details. | 160 // change. There are no details. |
| 164 SSL_INTERNAL_STATE_CHANGED, | 161 SSL_INTERNAL_STATE_CHANGED, |
| (...skipping 846 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1011 }; | 1008 }; |
| 1012 | 1009 |
| 1013 inline bool operator==(NotificationType::Type a, NotificationType b) { | 1010 inline bool operator==(NotificationType::Type a, NotificationType b) { |
| 1014 return a == b.value; | 1011 return a == b.value; |
| 1015 } | 1012 } |
| 1016 inline bool operator!=(NotificationType::Type a, NotificationType b) { | 1013 inline bool operator!=(NotificationType::Type a, NotificationType b) { |
| 1017 return a != b.value; | 1014 return a != b.value; |
| 1018 } | 1015 } |
| 1019 | 1016 |
| 1020 #endif // CHROME_COMMON_NOTIFICATION_TYPE_H_ | 1017 #endif // CHROME_COMMON_NOTIFICATION_TYPE_H_ |
| OLD | NEW |