| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_COMMON_NOTIFICATION_TYPE_H_ | 5 #ifndef CONTENT_COMMON_NOTIFICATION_TYPE_H_ |
| 6 #define CONTENT_COMMON_NOTIFICATION_TYPE_H_ | 6 #define CONTENT_COMMON_NOTIFICATION_TYPE_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 // This file describes various types used to describe and filter notifications | 9 // This file describes various types used to describe and filter notifications |
| 10 // that pass through the NotificationService. | 10 // that pass through the NotificationService. |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 // The app is done processing user actions, now is a good time to do | 23 // The app is done processing user actions, now is a good time to do |
| 24 // some background work. | 24 // some background work. |
| 25 NOTIFICATION_IDLE, | 25 NOTIFICATION_IDLE, |
| 26 | 26 |
| 27 // Means that the app has just started doing something in response to a | 27 // Means that the app has just started doing something in response to a |
| 28 // user action, and that background processes shouldn't run if avoidable. | 28 // user action, and that background processes shouldn't run if avoidable. |
| 29 NOTIFICATION_BUSY, | 29 NOTIFICATION_BUSY, |
| 30 | 30 |
| 31 // This is sent when the user does a gesture resulting in a noteworthy | 31 // This is sent when the user does a gesture resulting in a noteworthy |
| 32 // action taking place. This is typically used for logging. The source is | 32 // action taking place. This is typically used for logging. The source is |
| 33 // the profile, and the details is a string identifying the action. | 33 // the browser context, and the details is a string identifying the action. |
| 34 NOTIFICATION_USER_ACTION, | 34 NOTIFICATION_USER_ACTION, |
| 35 | 35 |
| 36 // NavigationController ---------------------------------------------------- | 36 // NavigationController ---------------------------------------------------- |
| 37 | 37 |
| 38 // A new pending navigation has been created. Pending entries are created | 38 // A new pending navigation has been created. Pending entries are created |
| 39 // when the user requests the navigation. We don't know if it will actually | 39 // when the user requests the navigation. We don't know if it will actually |
| 40 // happen until it does (at this point, it will be "committed." Note that | 40 // happen until it does (at this point, it will be "committed." Note that |
| 41 // renderer- initiated navigations such as link clicks will never be | 41 // renderer- initiated navigations such as link clicks will never be |
| 42 // pending. | 42 // pending. |
| 43 // | 43 // |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 114 // object are provided. | 114 // object are provided. |
| 115 NOTIFICATION_RESOURCE_RESPONSE_STARTED, | 115 NOTIFICATION_RESOURCE_RESPONSE_STARTED, |
| 116 | 116 |
| 117 // A redirect was received while requesting a resource. The source will be | 117 // A redirect was received while requesting a resource. The source will be |
| 118 // a Source<RenderViewHostDelegate> corresponding to the tab in which the | 118 // a Source<RenderViewHostDelegate> corresponding to the tab in which the |
| 119 // request was issued. Details in the form of a ResourceRedirectDetails | 119 // request was issued. Details in the form of a ResourceRedirectDetails |
| 120 // are provided. | 120 // are provided. |
| 121 NOTIFICATION_RESOURCE_RECEIVED_REDIRECT, | 121 NOTIFICATION_RESOURCE_RECEIVED_REDIRECT, |
| 122 | 122 |
| 123 // A new tab is created from an existing tab to serve as a target of a | 123 // A new tab is created from an existing tab to serve as a target of a |
| 124 // navigation that is about to happen. The source will be a Source<Profile> | 124 // navigation that is about to happen. The source will be a |
| 125 // corresponding to the profile in which the new tab will live. Details in | 125 // Source<BrowserContext> corresponding to the browser context in which the |
| 126 // the form of a RetargetingDetails object are provided. | 126 // new tab will live. Details in the form of a RetargetingDetails object are |
| 127 // provided. |
| 127 NOTIFICATION_RETARGETING, | 128 NOTIFICATION_RETARGETING, |
| 128 | 129 |
| 129 // A new window was requested but was not created. The source will be a | 130 // A new window was requested but was not created. The source will be a |
| 130 // Source<TabContents> corresponding to the tab the request originated from. | 131 // Source<TabContents> corresponding to the tab the request originated from. |
| 131 // Details are the ViewHostMsg_CreateWindow_Params object that were used in | 132 // Details are the ViewHostMsg_CreateWindow_Params object that were used in |
| 132 // the request. | 133 // the request. |
| 133 NOTIFICATION_CREATING_NEW_WINDOW_CANCELLED, | 134 NOTIFICATION_CREATING_NEW_WINDOW_CANCELLED, |
| 134 | 135 |
| 135 // SSL --------------------------------------------------------------------- | 136 // SSL --------------------------------------------------------------------- |
| 136 | 137 |
| (...skipping 307 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 444 // of a temporary zoom level change, the details is an empty string. | 445 // of a temporary zoom level change, the details is an empty string. |
| 445 NOTIFICATION_ZOOM_LEVEL_CHANGED, | 446 NOTIFICATION_ZOOM_LEVEL_CHANGED, |
| 446 | 447 |
| 447 // Custom notifications used by the embedder should start from here. | 448 // Custom notifications used by the embedder should start from here. |
| 448 NOTIFICATION_CONTENT_END, | 449 NOTIFICATION_CONTENT_END, |
| 449 }; | 450 }; |
| 450 | 451 |
| 451 } // namespace content | 452 } // namespace content |
| 452 | 453 |
| 453 #endif // CONTENT_COMMON_NOTIFICATION_TYPE_H_ | 454 #endif // CONTENT_COMMON_NOTIFICATION_TYPE_H_ |
| OLD | NEW |