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 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 // 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 NOTIFICATION_WEB_CONTENTS_CONNECTED, | 113 NOTIFICATION_WEB_CONTENTS_CONNECTED, |
113 | 114 |
114 // This notification is sent when a WebContents swaps its render view host | 115 // This notification is sent when a WebContents swaps its render view host |
115 // with another one, possibly changing processes. The source is a | 116 // with another one, possibly changing processes. The source is a |
116 // Source<WebContents> with a pointer to the WebContents. A | 117 // Source<WebContents> with a pointer to the WebContents. A |
117 // NOTIFICATION_WEB_CONTENTS_DISCONNECTED notification is guaranteed before | 118 // NOTIFICATION_WEB_CONTENTS_DISCONNECTED notification is guaranteed before |
118 // the source pointer becomes junk. Details are the RenderViewHost that | 119 // the source pointer becomes junk. Details are the RenderViewHost that |
119 // has been replaced, or NULL if the old RVH was shut down. | 120 // has been replaced, or NULL if the old RVH was shut down. |
| 121 // DEPRECATED: Use WebContentsObserver::RenderViewHostSwapped() |
120 NOTIFICATION_WEB_CONTENTS_SWAPPED, | 122 NOTIFICATION_WEB_CONTENTS_SWAPPED, |
121 | 123 |
122 // This message is sent after a WebContents is disconnected from the | 124 // This message is sent after a WebContents is disconnected from the |
123 // renderer process. The source is a Source<WebContents> with a pointer to | 125 // renderer process. The source is a Source<WebContents> with a pointer to |
124 // the WebContents (the pointer is usable). No details are expected. | 126 // the WebContents (the pointer is usable). No details are expected. |
| 127 // DEPRECATED: This is fired in two situations: when the render process |
| 128 // crashes, in which case use WebContentsObserver::RenderProcessGone, and when |
| 129 // the WebContents is being torn down, in which case use |
| 130 // WebContentsObserver::WebContentsDestroyed() |
125 NOTIFICATION_WEB_CONTENTS_DISCONNECTED, | 131 NOTIFICATION_WEB_CONTENTS_DISCONNECTED, |
126 | 132 |
127 // This notification is sent after WebContents' title is updated. The source | 133 // This notification is sent after WebContents' title is updated. The source |
128 // is a Source<WebContents> with a pointer to the WebContents. The details | 134 // is a Source<WebContents> with a pointer to the WebContents. The details |
129 // is a std::pair<NavigationEntry*, bool> that contains more information. | 135 // is a std::pair<NavigationEntry*, bool> that contains more information. |
130 NOTIFICATION_WEB_CONTENTS_TITLE_UPDATED, | 136 NOTIFICATION_WEB_CONTENTS_TITLE_UPDATED, |
131 | 137 |
132 // Indicates a WebContents has been hidden or restored. The source is | 138 // Indicates a WebContents has been hidden or restored. The source is |
133 // a Source<WebContents>. The details is a bool set to true if the new | 139 // a Source<WebContents>. The details is a bool set to true if the new |
134 // state is visible. | 140 // state is visible. |
135 NOTIFICATION_WEB_CONTENTS_VISIBILITY_CHANGED, | 141 NOTIFICATION_WEB_CONTENTS_VISIBILITY_CHANGED, |
136 | 142 |
137 // This notification is sent when a WebContents is being destroyed. Any | 143 // This notification is sent when a WebContents is being destroyed. Any |
138 // object holding a reference to a WebContents can listen to that | 144 // object holding a reference to a WebContents can listen to that |
139 // notification to properly reset the reference. The source is a | 145 // notification to properly reset the reference. The source is a |
140 // Source<WebContents>. | 146 // Source<WebContents>. |
| 147 // DEPRECATED: Use WebContentsObserver::WebContentsDestroyed() |
141 NOTIFICATION_WEB_CONTENTS_DESTROYED, | 148 NOTIFICATION_WEB_CONTENTS_DESTROYED, |
142 | 149 |
143 // A RenderViewHost was created for a WebContents. The source is the | 150 // A RenderViewHost was created for a WebContents. The source is the |
144 // associated WebContents, and the details is the RenderViewHost | 151 // associated WebContents, and the details is the RenderViewHost |
145 // pointer. | 152 // pointer. |
146 NOTIFICATION_WEB_CONTENTS_RENDER_VIEW_HOST_CREATED, | 153 NOTIFICATION_WEB_CONTENTS_RENDER_VIEW_HOST_CREATED, |
147 | 154 |
148 // Indicates that a RenderProcessHost was created and its handle is now | 155 // Indicates that a RenderProcessHost was created and its handle is now |
149 // available. The source will be the RenderProcessHost that corresponds to | 156 // available. The source will be the RenderProcessHost that corresponds to |
150 // the process. | 157 // the process. |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
224 // the RenderViewHost, and the details is a DomOperationNotificationDetails. | 231 // the RenderViewHost, and the details is a DomOperationNotificationDetails. |
225 NOTIFICATION_DOM_OPERATION_RESPONSE, | 232 NOTIFICATION_DOM_OPERATION_RESPONSE, |
226 | 233 |
227 // Custom notifications used by the embedder should start from here. | 234 // Custom notifications used by the embedder should start from here. |
228 NOTIFICATION_CONTENT_END, | 235 NOTIFICATION_CONTENT_END, |
229 }; | 236 }; |
230 | 237 |
231 } // namespace content | 238 } // namespace content |
232 | 239 |
233 #endif // CONTENT_PUBLIC_BROWSER_NOTIFICATION_TYPES_H_ | 240 #endif // CONTENT_PUBLIC_BROWSER_NOTIFICATION_TYPES_H_ |
OLD | NEW |