OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 CONTENT_PUBLIC_BROWSER_NOTIFICATION_TYPES_H_ | 5 #ifndef CONTENT_PUBLIC_BROWSER_NOTIFICATION_TYPES_H_ |
6 #define CONTENT_PUBLIC_BROWSER_NOTIFICATION_TYPES_H_ | 6 #define CONTENT_PUBLIC_BROWSER_NOTIFICATION_TYPES_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 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
95 // a Source<WebContents> corresponding to the tab in which the request was | 95 // a Source<WebContents> corresponding to the tab in which the request was |
96 // issued. Details in the form of a ResourceRequestDetails object are | 96 // issued. Details in the form of a ResourceRequestDetails object are |
97 // provided. | 97 // provided. |
98 NOTIFICATION_RESOURCE_RESPONSE_STARTED, | 98 NOTIFICATION_RESOURCE_RESPONSE_STARTED, |
99 | 99 |
100 // A redirect was received while requesting a resource. The source will be | 100 // A redirect was received while requesting a resource. The source will be |
101 // a Source<WebContents> corresponding to the tab in which the request was | 101 // a Source<WebContents> corresponding to the tab in which the request was |
102 // issued. Details in the form of a ResourceRedirectDetails are provided. | 102 // issued. Details in the form of a ResourceRedirectDetails are provided. |
103 NOTIFICATION_RESOURCE_RECEIVED_REDIRECT, | 103 NOTIFICATION_RESOURCE_RECEIVED_REDIRECT, |
104 | 104 |
| 105 // SSL --------------------------------------------------------------------- |
| 106 |
| 107 // Updating the SSL security indicators (the lock icon and such) proceeds |
| 108 // in two phases: |
| 109 // |
| 110 // 1) The internal SSL state for a host or tab changes. When this happens, |
| 111 // the SSLManager broadcasts an SSL_INTERNAL_STATE_CHANGED notification. |
| 112 // |
| 113 // 2) The SSLManager for each tab receives this notification and might or |
| 114 // might not update the navigation entry for its tab, depending on |
| 115 // whether the change in state affects that tab. If the SSLManager does |
| 116 // change the navigation entry, then the SSLManager broadcasts an |
| 117 // SSL_VISIBLE_STATE_CHANGED notification to the user interface can |
| 118 // redraw properly. |
| 119 |
| 120 // The SSL state of a page has changed in some visible way. For example, |
| 121 // if an insecure resource is loaded on a secure page. Note that a |
| 122 // toplevel load commit will also update the SSL state (since the |
| 123 // NavigationEntry is new) and this message won't always be sent in that |
| 124 // case. Listen to this notification if you need to refresh SSL-related UI |
| 125 // elements. |
| 126 // |
| 127 // There is no source or details. |
| 128 NOTIFICATION_SSL_VISIBLE_STATE_CHANGED, |
| 129 |
| 130 // The SSL state of the browser has changed in some internal way. For |
| 131 // example, the user might have explicitly allowed some broken certificate |
| 132 // or a secure origin might have included some insecure content. Listen to |
| 133 // this notifiation if you need to keep track of our internal SSL state. |
| 134 // |
| 135 // The source will be the browser context. The details will be the navigation |
| 136 // controller associated with the state change. |
| 137 NOTIFICATION_SSL_INTERNAL_STATE_CHANGED, |
| 138 |
105 // Devtools ------------------------------------------------------------------ | 139 // Devtools ------------------------------------------------------------------ |
106 | 140 |
107 // Indicates that a devtools agent has attached to a client. The source is | 141 // Indicates that a devtools agent has attached to a client. The source is |
108 // the BrowserContext* and the details is the inspected RenderViewHost*. | 142 // the BrowserContext* and the details is the inspected RenderViewHost*. |
109 NOTIFICATION_DEVTOOLS_AGENT_ATTACHED, | 143 NOTIFICATION_DEVTOOLS_AGENT_ATTACHED, |
110 | 144 |
111 // Indicates that a devtools agent has detached from a client. The source is | 145 // Indicates that a devtools agent has detached from a client. The source is |
112 // the BrowserContext* and the details is the inspected RenderViewHost*. | 146 // the BrowserContext* and the details is the inspected RenderViewHost*. |
113 NOTIFICATION_DEVTOOLS_AGENT_DETACHED, | 147 NOTIFICATION_DEVTOOLS_AGENT_DETACHED, |
114 | 148 |
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
302 // The source is a NavigationController. | 336 // The source is a NavigationController. |
303 NOTIFICATION_REPOST_WARNING_SHOWN, | 337 NOTIFICATION_REPOST_WARNING_SHOWN, |
304 | 338 |
305 // Custom notifications used by the embedder should start from here. | 339 // Custom notifications used by the embedder should start from here. |
306 NOTIFICATION_CONTENT_END, | 340 NOTIFICATION_CONTENT_END, |
307 }; | 341 }; |
308 | 342 |
309 } // namespace content | 343 } // namespace content |
310 | 344 |
311 #endif // CONTENT_PUBLIC_BROWSER_NOTIFICATION_TYPES_H_ | 345 #endif // CONTENT_PUBLIC_BROWSER_NOTIFICATION_TYPES_H_ |
OLD | NEW |