| 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 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 110 // This notification is sent when a render view host has connected to a | 110 // This notification is sent when a render view host has connected to a |
| 111 // renderer process. The source is a Source<WebContents> with a pointer to | 111 // renderer process. The source is a Source<WebContents> with a pointer to |
| 112 // the WebContents. A WEB_CONTENTS_DISCONNECTED notification is | 112 // the WebContents. A WEB_CONTENTS_DISCONNECTED notification is |
| 113 // guaranteed before the source pointer becomes junk. No details are | 113 // guaranteed before the source pointer becomes junk. No details are |
| 114 // expected. | 114 // expected. |
| 115 // DEPRECATED: Use WebContentsObserver::RenderViewReady() | 115 // DEPRECATED: Use WebContentsObserver::RenderViewReady() |
| 116 NOTIFICATION_WEB_CONTENTS_CONNECTED, | 116 NOTIFICATION_WEB_CONTENTS_CONNECTED, |
| 117 | 117 |
| 118 // This notification is sent when a WebContents swaps its render view host | 118 // This notification is sent when a WebContents swaps its render view host |
| 119 // with another one, possibly changing processes. The source is a | 119 // with another one, possibly changing processes. The source is a |
| 120 // Source<WebContents> with a pointer to the WebContents. A | 120 // Source<WebContents> with a pointer to the WebContents, details is a |
| 121 // NOTIFICATION_WEB_CONTENTS_DISCONNECTED notification is guaranteed before | 121 // std::pair::<old RenderViewHost, new RenderViewHost>. |
| 122 // the source pointer becomes junk. Details are the RenderViewHost that | |
| 123 // has been replaced, or NULL if the old RVH was shut down. | |
| 124 // DEPRECATED: Use WebContentsObserver::RenderViewHostSwapped() | 122 // DEPRECATED: Use WebContentsObserver::RenderViewHostSwapped() |
| 125 NOTIFICATION_WEB_CONTENTS_SWAPPED, | 123 NOTIFICATION_WEB_CONTENTS_SWAPPED, |
| 126 | 124 |
| 127 // This message is sent after a WebContents is disconnected from the | 125 // This message is sent after a WebContents is disconnected from the |
| 128 // renderer process. The source is a Source<WebContents> with a pointer to | 126 // renderer process. The source is a Source<WebContents> with a pointer to |
| 129 // the WebContents (the pointer is usable). No details are expected. | 127 // the WebContents (the pointer is usable). No details are expected. |
| 130 // DEPRECATED: This is fired in two situations: when the render process | 128 // DEPRECATED: This is fired in two situations: when the render process |
| 131 // crashes, in which case use WebContentsObserver::RenderProcessGone, and when | 129 // crashes, in which case use WebContentsObserver::RenderProcessGone, and when |
| 132 // the WebContents is being torn down, in which case use | 130 // the WebContents is being torn down, in which case use |
| 133 // WebContentsObserver::WebContentsDestroyed() | 131 // WebContentsObserver::WebContentsDestroyed() |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 173 // RenderProcessHost might be reused). The source will be the corresponding | 171 // RenderProcessHost might be reused). The source will be the corresponding |
| 174 // RenderProcessHost. The details will be a RendererClosedDetails struct. | 172 // RenderProcessHost. The details will be a RendererClosedDetails struct. |
| 175 // This may get sent along with RENDERER_PROCESS_TERMINATED. | 173 // This may get sent along with RENDERER_PROCESS_TERMINATED. |
| 176 NOTIFICATION_RENDERER_PROCESS_CLOSED, | 174 NOTIFICATION_RENDERER_PROCESS_CLOSED, |
| 177 | 175 |
| 178 // Indicates that a render process has become unresponsive for a period of | 176 // Indicates that a render process has become unresponsive for a period of |
| 179 // time. The source will be the RenderWidgetHost that corresponds to the | 177 // time. The source will be the RenderWidgetHost that corresponds to the |
| 180 // hung view, and no details are expected. | 178 // hung view, and no details are expected. |
| 181 NOTIFICATION_RENDERER_PROCESS_HANG, | 179 NOTIFICATION_RENDERER_PROCESS_HANG, |
| 182 | 180 |
| 183 // This is sent to notify that the RenderViewHost displayed in a WebContents | |
| 184 // has changed. Source is the NavigationController for which the change | |
| 185 // happened, details is a | |
| 186 // std::pair::<old RenderViewHost, new RenderViewHost>). | |
| 187 NOTIFICATION_RENDER_VIEW_HOST_CHANGED, | |
| 188 | |
| 189 // This is sent when a RenderWidgetHost is being destroyed. The source is | 181 // This is sent when a RenderWidgetHost is being destroyed. The source is |
| 190 // the RenderWidgetHost, the details are not used. | 182 // the RenderWidgetHost, the details are not used. |
| 191 NOTIFICATION_RENDER_WIDGET_HOST_DESTROYED, | 183 NOTIFICATION_RENDER_WIDGET_HOST_DESTROYED, |
| 192 | 184 |
| 193 // Sent after the backing store has been updated but before the widget has | 185 // Sent after the backing store has been updated but before the widget has |
| 194 // painted. The source is the RenderWidgetHost, the details are not used. | 186 // painted. The source is the RenderWidgetHost, the details are not used. |
| 195 NOTIFICATION_RENDER_WIDGET_HOST_DID_UPDATE_BACKING_STORE, | 187 NOTIFICATION_RENDER_WIDGET_HOST_DID_UPDATE_BACKING_STORE, |
| 196 | 188 |
| 197 // This notifies the observer that a PaintAtSizeACK was received. The source | 189 // This notifies the observer that a PaintAtSizeACK was received. The source |
| 198 // is the RenderWidgetHost, the details are an instance of | 190 // is the RenderWidgetHost, the details are an instance of |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 234 // the RenderViewHost, and the details is a DomOperationNotificationDetails. | 226 // the RenderViewHost, and the details is a DomOperationNotificationDetails. |
| 235 NOTIFICATION_DOM_OPERATION_RESPONSE, | 227 NOTIFICATION_DOM_OPERATION_RESPONSE, |
| 236 | 228 |
| 237 // Custom notifications used by the embedder should start from here. | 229 // Custom notifications used by the embedder should start from here. |
| 238 NOTIFICATION_CONTENT_END, | 230 NOTIFICATION_CONTENT_END, |
| 239 }; | 231 }; |
| 240 | 232 |
| 241 } // namespace content | 233 } // namespace content |
| 242 | 234 |
| 243 #endif // CONTENT_PUBLIC_BROWSER_NOTIFICATION_TYPES_H_ | 235 #endif // CONTENT_PUBLIC_BROWSER_NOTIFICATION_TYPES_H_ |
| OLD | NEW |