Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(271)

Side by Side Diff: content/public/browser/notification_types.h

Issue 23618036: Merge NOTIFICATION_RENDER_VIEW_HOST_CHANGED into NOTIFICATION_WEB_CONTENTS_SWAPPED. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 // This notification is sent when a render view host has connected to a 112 // This notification is sent when a render view host has connected to a
113 // renderer process. The source is a Source<WebContents> with a pointer to 113 // renderer process. The source is a Source<WebContents> with a pointer to
114 // the WebContents. A WEB_CONTENTS_DISCONNECTED notification is 114 // the WebContents. A WEB_CONTENTS_DISCONNECTED notification is
115 // guaranteed before the source pointer becomes junk. No details are 115 // guaranteed before the source pointer becomes junk. No details are
116 // expected. 116 // expected.
117 // DEPRECATED: Use WebContentsObserver::RenderViewReady() 117 // DEPRECATED: Use WebContentsObserver::RenderViewReady()
118 NOTIFICATION_WEB_CONTENTS_CONNECTED, 118 NOTIFICATION_WEB_CONTENTS_CONNECTED,
119 119
120 // This notification is sent when a WebContents swaps its render view host 120 // This notification is sent when a WebContents swaps its render view host
121 // with another one, possibly changing processes. The source is a 121 // with another one, possibly changing processes. The source is a
122 // Source<WebContents> with a pointer to the WebContents. A 122 // Source<WebContents> with a pointer to the WebContents, details is a
123 // NOTIFICATION_WEB_CONTENTS_DISCONNECTED notification is guaranteed before 123 // std::pair::<old RenderViewHost, new RenderViewHost>.
124 // the source pointer becomes junk. Details are the RenderViewHost that 124 // DEPRECATED: Use WebContentsObserver::RenderViewHostChanged()
125 // has been replaced, or NULL if the old RVH was shut down. 125 NOTIFICATION_RENDER_VIEW_HOST_CHANGED,
126 // DEPRECATED: Use WebContentsObserver::RenderViewHostSwapped()
127 NOTIFICATION_WEB_CONTENTS_SWAPPED,
128 126
129 // This message is sent after a WebContents is disconnected from the 127 // This message is sent after a WebContents is disconnected from the
130 // renderer process. The source is a Source<WebContents> with a pointer to 128 // renderer process. The source is a Source<WebContents> with a pointer to
131 // the WebContents (the pointer is usable). No details are expected. 129 // the WebContents (the pointer is usable). No details are expected.
132 // DEPRECATED: This is fired in two situations: when the render process 130 // DEPRECATED: This is fired in two situations: when the render process
133 // crashes, in which case use WebContentsObserver::RenderProcessGone, and when 131 // crashes, in which case use WebContentsObserver::RenderProcessGone, and when
134 // the WebContents is being torn down, in which case use 132 // the WebContents is being torn down, in which case use
135 // WebContentsObserver::WebContentsDestroyed() 133 // WebContentsObserver::WebContentsDestroyed()
136 NOTIFICATION_WEB_CONTENTS_DISCONNECTED, 134 NOTIFICATION_WEB_CONTENTS_DISCONNECTED,
137 135
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
176 // RenderProcessHost might be reused). The source will be the corresponding 174 // RenderProcessHost might be reused). The source will be the corresponding
177 // RenderProcessHost. The details will be a RendererClosedDetails struct. 175 // RenderProcessHost. The details will be a RendererClosedDetails struct.
178 // This may get sent along with RENDERER_PROCESS_TERMINATED. 176 // This may get sent along with RENDERER_PROCESS_TERMINATED.
179 NOTIFICATION_RENDERER_PROCESS_CLOSED, 177 NOTIFICATION_RENDERER_PROCESS_CLOSED,
180 178
181 // Indicates that a render process has become unresponsive for a period of 179 // Indicates that a render process has become unresponsive for a period of
182 // time. The source will be the RenderWidgetHost that corresponds to the 180 // time. The source will be the RenderWidgetHost that corresponds to the
183 // hung view, and no details are expected. 181 // hung view, and no details are expected.
184 NOTIFICATION_RENDERER_PROCESS_HANG, 182 NOTIFICATION_RENDERER_PROCESS_HANG,
185 183
186 // This is sent to notify that the RenderViewHost displayed in a WebContents
187 // has changed. Source is the NavigationController for which the change
188 // happened, details is a
189 // std::pair::<old RenderViewHost, new RenderViewHost>).
190 NOTIFICATION_RENDER_VIEW_HOST_CHANGED,
191
192 // This is sent when a RenderWidgetHost is being destroyed. The source is 184 // This is sent when a RenderWidgetHost is being destroyed. The source is
193 // the RenderWidgetHost, the details are not used. 185 // the RenderWidgetHost, the details are not used.
194 NOTIFICATION_RENDER_WIDGET_HOST_DESTROYED, 186 NOTIFICATION_RENDER_WIDGET_HOST_DESTROYED,
195 187
196 // Sent after the backing store has been updated but before the widget has 188 // Sent after the backing store has been updated but before the widget has
197 // painted. The source is the RenderWidgetHost, the details are not used. 189 // painted. The source is the RenderWidgetHost, the details are not used.
198 NOTIFICATION_RENDER_WIDGET_HOST_DID_UPDATE_BACKING_STORE, 190 NOTIFICATION_RENDER_WIDGET_HOST_DID_UPDATE_BACKING_STORE,
199 191
200 // This notifies the observer that a PaintAtSizeACK was received. The source 192 // This notifies the observer that a PaintAtSizeACK was received. The source
201 // is the RenderWidgetHost, the details are an instance of 193 // is the RenderWidgetHost, the details are an instance of
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
237 // the RenderViewHost, and the details is a DomOperationNotificationDetails. 229 // the RenderViewHost, and the details is a DomOperationNotificationDetails.
238 NOTIFICATION_DOM_OPERATION_RESPONSE, 230 NOTIFICATION_DOM_OPERATION_RESPONSE,
239 231
240 // Custom notifications used by the embedder should start from here. 232 // Custom notifications used by the embedder should start from here.
241 NOTIFICATION_CONTENT_END, 233 NOTIFICATION_CONTENT_END,
242 }; 234 };
243 235
244 } // namespace content 236 } // namespace content
245 237
246 #endif // CONTENT_PUBLIC_BROWSER_NOTIFICATION_TYPES_H_ 238 #endif // CONTENT_PUBLIC_BROWSER_NOTIFICATION_TYPES_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698