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

Side by Side Diff: chrome/common/notification_type.h

Issue 3436002: Add the onBeforeNavigate and onErrorOccured events to the webNavigation API. (Closed)
Patch Set: updates Created 10 years, 3 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
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 CHROME_COMMON_NOTIFICATION_TYPE_H_ 5 #ifndef CHROME_COMMON_NOTIFICATION_TYPE_H_
6 #define CHROME_COMMON_NOTIFICATION_TYPE_H_ 6 #define CHROME_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 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 LOAD_START, 96 LOAD_START,
97 97
98 // A content load has stopped. The source will be a 98 // A content load has stopped. The source will be a
99 // Source<NavigationController> corresponding to the tab in which the load 99 // Source<NavigationController> corresponding to the tab in which the load
100 // is occurring. Details in the form of a LoadNotificationDetails object 100 // is occurring. Details in the form of a LoadNotificationDetails object
101 // are optional. 101 // are optional.
102 LOAD_STOP, 102 LOAD_STOP,
103 103
104 // A frame is staring a provisional load. The source is a 104 // A frame is staring a provisional load. The source is a
105 // Source<NavigationController> corresponding to the tab in which the load 105 // Source<NavigationController> corresponding to the tab in which the load
106 // occurs. Details is a bool specifying if the load occurs in the main 106 // occurs. Details is a ProvisionalLoadDetails object.
107 // frame (or a sub-frame if false).
108 FRAME_PROVISIONAL_LOAD_START, 107 FRAME_PROVISIONAL_LOAD_START,
109 108
109 // The provisional load for a frame was committed. The source is a
110 // NavigationController corresponding to the tab in which the load occured.
111 // Details is a ProvisionalLoadDetails object. In contrast to
112 // NAV_ENTRY_COMMITTED, this notification is sent when the load was
113 // committed, even if no navigation entry was committed (such as
114 // AUTO_SUBFRAME navigations).
115 FRAME_PROVISIONAL_LOAD_COMMITTED,
116
110 // Content was loaded from an in-memory cache. The source will be a 117 // Content was loaded from an in-memory cache. The source will be a
111 // Source<NavigationController> corresponding to the tab in which the load 118 // Source<NavigationController> corresponding to the tab in which the load
112 // occurred. Details in the form of a LoadFromMemoryCacheDetails object 119 // occurred. Details in the form of a LoadFromMemoryCacheDetails object
113 // are provided. 120 // are provided.
114 LOAD_FROM_MEMORY_CACHE, 121 LOAD_FROM_MEMORY_CACHE,
115 122
116 // A provisional content load has failed with an error. The source will be 123 // A provisional content load has failed with an error. The source will be
117 // a Source<NavigationController> corresponding to the tab in which the 124 // a Source<NavigationController> corresponding to the tab in which the
118 // load occurred. Details in the form of a ProvisionalLoadDetails object 125 // load occurred. Details in the form of a ProvisionalLoadDetails object
119 // are provided. 126 // are provided.
(...skipping 1076 matching lines...) Expand 10 before | Expand all | Expand 10 after
1196 }; 1203 };
1197 1204
1198 inline bool operator==(NotificationType::Type a, NotificationType b) { 1205 inline bool operator==(NotificationType::Type a, NotificationType b) {
1199 return a == b.value; 1206 return a == b.value;
1200 } 1207 }
1201 inline bool operator!=(NotificationType::Type a, NotificationType b) { 1208 inline bool operator!=(NotificationType::Type a, NotificationType b) {
1202 return a != b.value; 1209 return a != b.value;
1203 } 1210 }
1204 1211
1205 #endif // CHROME_COMMON_NOTIFICATION_TYPE_H_ 1212 #endif // CHROME_COMMON_NOTIFICATION_TYPE_H_
OLDNEW
« no previous file with comments | « chrome/browser/tab_contents/tab_contents.cc ('k') | chrome/test/data/extensions/api_test/webnavigation/navigation/test.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698