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 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 // A content load has stopped. The source will be a | 82 // A content load has stopped. The source will be a |
83 // Source<NavigationController> corresponding to the tab in which the load | 83 // Source<NavigationController> corresponding to the tab in which the load |
84 // is occurring. Details in the form of a LoadNotificationDetails object | 84 // is occurring. Details in the form of a LoadNotificationDetails object |
85 // are optional. | 85 // are optional. |
86 NOTIFICATION_LOAD_STOP, | 86 NOTIFICATION_LOAD_STOP, |
87 | 87 |
88 // Content was loaded from an in-memory cache. The source will be a | 88 // Content was loaded from an in-memory cache. The source will be a |
89 // Source<NavigationController> corresponding to the tab in which the load | 89 // Source<NavigationController> corresponding to the tab in which the load |
90 // occurred. Details in the form of a LoadFromMemoryCacheDetails object | 90 // occurred. Details in the form of a LoadFromMemoryCacheDetails object |
91 // are provided. | 91 // are provided. |
| 92 // DEPRECATED: Use WebContentsObserver::DidLoadResourceFromMemoryCache() |
92 NOTIFICATION_LOAD_FROM_MEMORY_CACHE, | 93 NOTIFICATION_LOAD_FROM_MEMORY_CACHE, |
93 | 94 |
94 // A response has been received for a resource request. The source will be | 95 // A response has been received for a resource request. The source will be |
95 // a Source<WebContents> corresponding to the tab in which the request was | 96 // a Source<WebContents> corresponding to the tab in which the request was |
96 // issued. Details in the form of a ResourceRequestDetails object are | 97 // issued. Details in the form of a ResourceRequestDetails object are |
97 // provided. | 98 // provided. |
| 99 // DEPRECATED: Use WebContentsObserver::DidGetResourceResponseStart() |
98 NOTIFICATION_RESOURCE_RESPONSE_STARTED, | 100 NOTIFICATION_RESOURCE_RESPONSE_STARTED, |
99 | 101 |
100 // A redirect was received while requesting a resource. The source will be | 102 // A redirect was received while requesting a resource. The source will be |
101 // a Source<WebContents> corresponding to the tab in which the request was | 103 // a Source<WebContents> corresponding to the tab in which the request was |
102 // issued. Details in the form of a ResourceRedirectDetails are provided. | 104 // issued. Details in the form of a ResourceRedirectDetails are provided. |
| 105 // DEPRECATED: Use WebContentsObserver::DidGetRedirectForResourceRequest() |
103 NOTIFICATION_RESOURCE_RECEIVED_REDIRECT, | 106 NOTIFICATION_RESOURCE_RECEIVED_REDIRECT, |
104 | 107 |
105 // WebContents --------------------------------------------------------------- | 108 // WebContents --------------------------------------------------------------- |
106 | 109 |
107 // 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 |
108 // 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 |
109 // the WebContents. A WEB_CONTENTS_DISCONNECTED notification is | 112 // the WebContents. A WEB_CONTENTS_DISCONNECTED notification is |
110 // guaranteed before the source pointer becomes junk. No details are | 113 // guaranteed before the source pointer becomes junk. No details are |
111 // expected. | 114 // expected. |
112 NOTIFICATION_WEB_CONTENTS_CONNECTED, | 115 NOTIFICATION_WEB_CONTENTS_CONNECTED, |
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
224 // the RenderViewHost, and the details is a DomOperationNotificationDetails. | 227 // the RenderViewHost, and the details is a DomOperationNotificationDetails. |
225 NOTIFICATION_DOM_OPERATION_RESPONSE, | 228 NOTIFICATION_DOM_OPERATION_RESPONSE, |
226 | 229 |
227 // Custom notifications used by the embedder should start from here. | 230 // Custom notifications used by the embedder should start from here. |
228 NOTIFICATION_CONTENT_END, | 231 NOTIFICATION_CONTENT_END, |
229 }; | 232 }; |
230 | 233 |
231 } // namespace content | 234 } // namespace content |
232 | 235 |
233 #endif // CONTENT_PUBLIC_BROWSER_NOTIFICATION_TYPES_H_ | 236 #endif // CONTENT_PUBLIC_BROWSER_NOTIFICATION_TYPES_H_ |
OLD | NEW |