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

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

Issue 2095006: Revert 47347 - (Original patch reviewed at http://codereview.chromium.org/206... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 10 years, 7 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 | Annotate | Revision Log
« no previous file with comments | « chrome/browser/toolbar_model.cc ('k') | chrome/test/automation/automation_messages.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 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 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 // a Source<NavigationController> corresponding to the tab in which the 124 // a Source<NavigationController> corresponding to the tab in which the
125 // request was issued. Details in the form of a ResourceRedirectDetails 125 // request was issued. Details in the form of a ResourceRedirectDetails
126 // are provided. 126 // are provided.
127 RESOURCE_RECEIVED_REDIRECT, 127 RESOURCE_RECEIVED_REDIRECT,
128 128
129 // SSL --------------------------------------------------------------------- 129 // SSL ---------------------------------------------------------------------
130 130
131 // Updating the SSL security indicators (the lock icon and such) proceeds 131 // Updating the SSL security indicators (the lock icon and such) proceeds
132 // in two phases: 132 // in two phases:
133 // 133 //
134 // 1) The internal SSL state for a host or tab changes. When this happens, 134 // 1) An SSLManager changes the SSLHostState (which hangs off the profile
135 // the SSLManager broadcasts an SSL_INTERNAL_STATE_CHANGED notification. 135 // object). When this happens, the SSLManager broadcasts an
136 // SSL_INTERNAL_STATE_CHANGED notification.
136 // 137 //
137 // 2) The SSLManager for each tab receives this notification and might or 138 // 2) The SSLManager for each tab receives this notification and might or
138 // might not update the navigation entry for its tab, depending on 139 // might not update the navigation entry for its tab, depending on
139 // whether the change in state affects that tab. If the SSLManager does 140 // whether the change in SSLHostState affects that tab. If the
140 // change the navigation entry, then the SSLManager broadcasts an 141 // SSLManager does change the navigation entry, then the SSLManager
141 // SSL_VISIBLE_STATE_CHANGED notification to the user interface can 142 // broadcasts an SSL_VISIBLE_STATE_CHANGED notification to the user
142 // redraw properly. 143 // interface can redraw properly.
143 144
144 // The SSL state of a page has changed in some visible way. For example, 145 // The SSL state of a page has changed in some visible way. For example,
145 // if an insecure resource is loaded on a secure page. Note that a 146 // if an insecure resource is loaded on a secure page. Note that a
146 // toplevel load commit will also update the SSL state (since the 147 // toplevel load commit will also update the SSL state (since the
147 // NavigationEntry is new) and this message won't always be sent in that 148 // NavigationEntry is new) and this message won't always be sent in that
148 // case. Listen to this notification if you need to refresh SSL-related UI 149 // case. Listen to this notification if you need to refresh SSL-related UI
149 // elements. 150 // elements.
150 // 151 //
151 // There is no source or details. 152 // The source will be the navigation controller associated with the load.
153 // There are no details. The entry changed will be the active entry of the
154 // controller.
152 SSL_VISIBLE_STATE_CHANGED, 155 SSL_VISIBLE_STATE_CHANGED,
153 156
154 // The SSL state of the browser has changed in some internal way. For 157 // The SSL state of the browser has changed in some internal way. For
155 // example, the user might have explicitly allowed some broken certificate 158 // example, the user might have explicitly allowed some broken certificate
156 // or a secure origin might have included some insecure content. Listen to 159 // or a secure origin might have included some insecure content. Listen to
157 // this notifiation if you need to keep track of our internal SSL state. 160 // this notifiation if you need to keep track of our internal SSL state.
158 // 161 //
159 // The source will be the navigation controller associated with the state 162 // The source will be the navigation controller associated with the state
160 // change. There are no details. 163 // change. There are no details.
161 SSL_INTERNAL_STATE_CHANGED, 164 SSL_INTERNAL_STATE_CHANGED,
(...skipping 846 matching lines...) Expand 10 before | Expand all | Expand 10 after
1008 }; 1011 };
1009 1012
1010 inline bool operator==(NotificationType::Type a, NotificationType b) { 1013 inline bool operator==(NotificationType::Type a, NotificationType b) {
1011 return a == b.value; 1014 return a == b.value;
1012 } 1015 }
1013 inline bool operator!=(NotificationType::Type a, NotificationType b) { 1016 inline bool operator!=(NotificationType::Type a, NotificationType b) {
1014 return a != b.value; 1017 return a != b.value;
1015 } 1018 }
1016 1019
1017 #endif // CHROME_COMMON_NOTIFICATION_TYPE_H_ 1020 #endif // CHROME_COMMON_NOTIFICATION_TYPE_H_
OLDNEW
« no previous file with comments | « chrome/browser/toolbar_model.cc ('k') | chrome/test/automation/automation_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698