summaryrefslogtreecommitdiffstats
path: root/chrome/common
diff options
context:
space:
mode:
authorjochen@chromium.org <jochen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-09-16 12:41:15 +0000
committerjochen@chromium.org <jochen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-09-16 12:41:15 +0000
commit4c028ff10f9a8a025d1490909ea257056bae0ad9 (patch)
treea405defb2b9edb5051ff5dc20c4cce89ad6fb961 /chrome/common
parent36b70104846c6bd306dae660c3b3266a4acf2c1c (diff)
downloadchromium_src-4c028ff10f9a8a025d1490909ea257056bae0ad9.zip
chromium_src-4c028ff10f9a8a025d1490909ea257056bae0ad9.tar.gz
chromium_src-4c028ff10f9a8a025d1490909ea257056bae0ad9.tar.bz2
Add the onBeforeNavigate and onErrorOccured events to the webNavigation API.
Also, rewrite the onCommitted event such that AUTO_SUBFRAME events are also registered. The frameId and the requestId fields are still unimplemented. Also, there occur navigation events after an error is reported. BUG=50943 TEST=WebNavigationEvents Review URL: http://codereview.chromium.org/3436002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@59641 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common')
-rw-r--r--chrome/common/notification_type.h11
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