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 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
105 // WebContents --------------------------------------------------------------- | 105 // WebContents --------------------------------------------------------------- |
106 | 106 |
107 // This notification is sent when a render view host has connected to a | 107 // This notification is sent when a render view host has connected to a |
108 // renderer process. The source is a Source<WebContents> with a pointer to | 108 // renderer process. The source is a Source<WebContents> with a pointer to |
109 // the WebContents. A WEB_CONTENTS_DISCONNECTED notification is | 109 // the WebContents. A WEB_CONTENTS_DISCONNECTED notification is |
110 // guaranteed before the source pointer becomes junk. No details are | 110 // guaranteed before the source pointer becomes junk. No details are |
111 // expected. | 111 // expected. |
112 // DEPRECATED: Use WebContentsObserver::RenderViewReady() | 112 // DEPRECATED: Use WebContentsObserver::RenderViewReady() |
113 NOTIFICATION_WEB_CONTENTS_CONNECTED, | 113 NOTIFICATION_WEB_CONTENTS_CONNECTED, |
114 | 114 |
115 // This notification is sent when a WebContents swaps its render view host | |
116 // with another one, possibly changing processes. The source is a | |
117 // Source<WebContents> with a pointer to the WebContents, details is a | |
118 // std::pair::<old RenderViewHost, new RenderViewHost>. | |
119 // DEPRECATED: Use WebContentsObserver::RenderViewHostChanged() | |
120 NOTIFICATION_RENDER_VIEW_HOST_CHANGED, | |
121 | |
122 // This message is sent after a WebContents is disconnected from the | 115 // This message is sent after a WebContents is disconnected from the |
123 // renderer process. The source is a Source<WebContents> with a pointer to | 116 // renderer process. The source is a Source<WebContents> with a pointer to |
124 // the WebContents (the pointer is usable). No details are expected. | 117 // the WebContents (the pointer is usable). No details are expected. |
125 // DEPRECATED: This is fired in two situations: when the render process | 118 // DEPRECATED: This is fired in two situations: when the render process |
126 // crashes, in which case use WebContentsObserver::RenderProcessGone, and when | 119 // crashes, in which case use WebContentsObserver::RenderProcessGone, and when |
127 // the WebContents is being torn down, in which case use | 120 // the WebContents is being torn down, in which case use |
128 // WebContentsObserver::WebContentsDestroyed() | 121 // WebContentsObserver::WebContentsDestroyed() |
129 NOTIFICATION_WEB_CONTENTS_DISCONNECTED, | 122 NOTIFICATION_WEB_CONTENTS_DISCONNECTED, |
130 | 123 |
131 // This notification is sent after WebContents' title is updated. The source | 124 // This notification is sent after WebContents' title is updated. The source |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
214 // the RenderViewHost, and the details is a DomOperationNotificationDetails. | 207 // the RenderViewHost, and the details is a DomOperationNotificationDetails. |
215 NOTIFICATION_DOM_OPERATION_RESPONSE, | 208 NOTIFICATION_DOM_OPERATION_RESPONSE, |
216 | 209 |
217 // Custom notifications used by the embedder should start from here. | 210 // Custom notifications used by the embedder should start from here. |
218 NOTIFICATION_CONTENT_END, | 211 NOTIFICATION_CONTENT_END, |
219 }; | 212 }; |
220 | 213 |
221 } // namespace content | 214 } // namespace content |
222 | 215 |
223 #endif // CONTENT_PUBLIC_BROWSER_NOTIFICATION_TYPES_H_ | 216 #endif // CONTENT_PUBLIC_BROWSER_NOTIFICATION_TYPES_H_ |
OLD | NEW |