diff options
author | jochen@chromium.org <jochen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-09-17 08:35:22 +0000 |
---|---|---|
committer | jochen@chromium.org <jochen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-09-17 08:35:22 +0000 |
commit | a9c0bfe7d2d3f58cb5844c7470578327a55e4536 (patch) | |
tree | b4bb784c9a004f17b51fd1db9478df4543ed812b /chrome/common | |
parent | e35a0ca8a20827e1217ab1e929d17d270a6931bd (diff) | |
download | chromium_src-a9c0bfe7d2d3f58cb5844c7470578327a55e4536.zip chromium_src-a9c0bfe7d2d3f58cb5844c7470578327a55e4536.tar.gz chromium_src-a9c0bfe7d2d3f58cb5844c7470578327a55e4536.tar.bz2 |
Reland r59641. Add the onBeforeNavigate and onErrorOccured events to the webNavigation API.
Also, rewrite the onCommitted event such that AUTO_SUBFRAME events are also registered.
BUG=50943
TEST=WebNavigationEvents
Review URL: http://codereview.chromium.org/3383008
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@59777 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common')
-rw-r--r-- | chrome/common/notification_type.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/chrome/common/notification_type.h b/chrome/common/notification_type.h index fa1febb..f502a00 100644 --- a/chrome/common/notification_type.h +++ b/chrome/common/notification_type.h @@ -103,10 +103,17 @@ class NotificationType { // A frame is staring a provisional load. The source is a // Source<NavigationController> corresponding to the tab in which the load - // occurs. Details is a bool specifying if the load occurs in the main - // frame (or a sub-frame if false). + // occurs. Details is a ProvisionalLoadDetails object. FRAME_PROVISIONAL_LOAD_START, + // The provisional load for a frame was committed. The source is a + // NavigationController corresponding to the tab in which the load occured. + // Details is a ProvisionalLoadDetails object. In contrast to + // NAV_ENTRY_COMMITTED, this notification is sent when the load was + // committed, even if no navigation entry was committed (such as + // AUTO_SUBFRAME navigations). + FRAME_PROVISIONAL_LOAD_COMMITTED, + // Content was loaded from an in-memory cache. The source will be a // Source<NavigationController> corresponding to the tab in which the load // occurred. Details in the form of a LoadFromMemoryCacheDetails object |