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 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
108 // a Source<WebContents> corresponding to the tab in which the request was | 108 // a Source<WebContents> corresponding to the tab in which the request was |
109 // issued. Details in the form of a ResourceRequestDetails object are | 109 // issued. Details in the form of a ResourceRequestDetails object are |
110 // provided. | 110 // provided. |
111 NOTIFICATION_RESOURCE_RESPONSE_STARTED, | 111 NOTIFICATION_RESOURCE_RESPONSE_STARTED, |
112 | 112 |
113 // A redirect was received while requesting a resource. The source will be | 113 // A redirect was received while requesting a resource. The source will be |
114 // a Source<WebContents> corresponding to the tab in which the request was | 114 // a Source<WebContents> corresponding to the tab in which the request was |
115 // issued. Details in the form of a ResourceRedirectDetails are provided. | 115 // issued. Details in the form of a ResourceRedirectDetails are provided. |
116 NOTIFICATION_RESOURCE_RECEIVED_REDIRECT, | 116 NOTIFICATION_RESOURCE_RECEIVED_REDIRECT, |
117 | 117 |
118 // SSL --------------------------------------------------------------------- | |
119 | |
120 // Updating the SSL security indicators (the lock icon and such) proceeds | |
121 // in two phases: | |
122 // | |
123 // 1) The internal SSL state for a host or tab changes. When this happens, | |
124 // the SSLManager broadcasts an SSL_INTERNAL_STATE_CHANGED notification. | |
125 // | |
126 // 2) The SSLManager for each tab receives this notification and might or | |
127 // might not update the navigation entry for its tab, depending on | |
128 // whether the change in state affects that tab. If the SSLManager does | |
129 // change the navigation entry, then the SSLManager broadcasts an | |
130 // SSL_VISIBLE_STATE_CHANGED notification to the user interface can | |
131 // redraw properly. | |
132 | |
133 // The SSL state of a page has changed in some visible way. For example, | |
134 // if an insecure resource is loaded on a secure page. Note that a | |
135 // toplevel load commit will also update the SSL state (since the | |
136 // NavigationEntry is new) and this message won't always be sent in that | |
137 // case. Listen to this notification if you need to refresh SSL-related UI | |
138 // elements. | |
139 // | |
140 // There is no source or details. | |
141 NOTIFICATION_SSL_VISIBLE_STATE_CHANGED, | |
142 | |
143 // The SSL state of the browser has changed in some internal way. For | |
144 // example, the user might have explicitly allowed some broken certificate | |
145 // or a secure origin might have included some insecure content. Listen to | |
146 // this notifiation if you need to keep track of our internal SSL state. | |
147 // | |
148 // The source will be the browser context. The details will be the navigation | |
149 // controller associated with the state change. | |
150 NOTIFICATION_SSL_INTERNAL_STATE_CHANGED, | |
151 | |
152 // Devtools ------------------------------------------------------------------ | 118 // Devtools ------------------------------------------------------------------ |
153 | 119 |
154 // Indicates that a devtools agent has attached to a client. The source is | 120 // Indicates that a devtools agent has attached to a client. The source is |
155 // the BrowserContext* and the details is the inspected RenderViewHost*. | 121 // the BrowserContext* and the details is the inspected RenderViewHost*. |
156 NOTIFICATION_DEVTOOLS_AGENT_ATTACHED, | 122 NOTIFICATION_DEVTOOLS_AGENT_ATTACHED, |
157 | 123 |
158 // Indicates that a devtools agent has detached from a client. The source is | 124 // Indicates that a devtools agent has detached from a client. The source is |
159 // the BrowserContext* and the details is the inspected RenderViewHost*. | 125 // the BrowserContext* and the details is the inspected RenderViewHost*. |
160 NOTIFICATION_DEVTOOLS_AGENT_DETACHED, | 126 NOTIFICATION_DEVTOOLS_AGENT_DETACHED, |
161 | 127 |
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
362 // of a temporary zoom level change, the details is an empty string. | 328 // of a temporary zoom level change, the details is an empty string. |
363 NOTIFICATION_ZOOM_LEVEL_CHANGED, | 329 NOTIFICATION_ZOOM_LEVEL_CHANGED, |
364 | 330 |
365 // Custom notifications used by the embedder should start from here. | 331 // Custom notifications used by the embedder should start from here. |
366 NOTIFICATION_CONTENT_END, | 332 NOTIFICATION_CONTENT_END, |
367 }; | 333 }; |
368 | 334 |
369 } // namespace content | 335 } // namespace content |
370 | 336 |
371 #endif // CONTENT_PUBLIC_BROWSER_NOTIFICATION_TYPES_H_ | 337 #endif // CONTENT_PUBLIC_BROWSER_NOTIFICATION_TYPES_H_ |
OLD | NEW |