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

Side by Side Diff: content/public/browser/notification_types.h

Issue 12249003: content: convert SSL notifications to observer usage (take 2) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 10 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_PUBLIC_BROWSER_NOTIFICATION_TYPES_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_NOTIFICATION_TYPES_H_
6 #define CONTENT_PUBLIC_BROWSER_NOTIFICATION_TYPES_H_ 6 #define CONTENT_PUBLIC_BROWSER_NOTIFICATION_TYPES_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 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 // a Source<WebContents> corresponding to the tab in which the request was 95 // a Source<WebContents> corresponding to the tab in which the request was
96 // issued. Details in the form of a ResourceRequestDetails object are 96 // issued. Details in the form of a ResourceRequestDetails object are
97 // provided. 97 // provided.
98 NOTIFICATION_RESOURCE_RESPONSE_STARTED, 98 NOTIFICATION_RESOURCE_RESPONSE_STARTED,
99 99
100 // A redirect was received while requesting a resource. The source will be 100 // A redirect was received while requesting a resource. The source will be
101 // a Source<WebContents> corresponding to the tab in which the request was 101 // a Source<WebContents> corresponding to the tab in which the request was
102 // issued. Details in the form of a ResourceRedirectDetails are provided. 102 // issued. Details in the form of a ResourceRedirectDetails are provided.
103 NOTIFICATION_RESOURCE_RECEIVED_REDIRECT, 103 NOTIFICATION_RESOURCE_RECEIVED_REDIRECT,
104 104
105 // SSL ---------------------------------------------------------------------
106
107 // Updating the SSL security indicators (the lock icon and such) proceeds
108 // in two phases:
109 //
110 // 1) The internal SSL state for a host or tab changes. When this happens,
111 // the SSLManager broadcasts an SSL_INTERNAL_STATE_CHANGED notification.
112 //
113 // 2) The SSLManager for each tab receives this notification and might or
114 // might not update the navigation entry for its tab, depending on
115 // whether the change in state affects that tab. If the SSLManager does
116 // change the navigation entry, then the SSLManager broadcasts an
117 // SSL_VISIBLE_STATE_CHANGED notification to the user interface can
118 // redraw properly.
119
120 // The SSL state of a page has changed in some visible way. For example,
121 // if an insecure resource is loaded on a secure page. Note that a
122 // toplevel load commit will also update the SSL state (since the
123 // NavigationEntry is new) and this message won't always be sent in that
124 // case. Listen to this notification if you need to refresh SSL-related UI
125 // elements.
126 //
127 // There is no source or details.
128 NOTIFICATION_SSL_VISIBLE_STATE_CHANGED,
129
130 // The SSL state of the browser has changed in some internal way. For
131 // example, the user might have explicitly allowed some broken certificate
132 // or a secure origin might have included some insecure content. Listen to
133 // this notifiation if you need to keep track of our internal SSL state.
134 //
135 // The source will be the browser context. The details will be the navigation
136 // controller associated with the state change.
137 NOTIFICATION_SSL_INTERNAL_STATE_CHANGED,
138
139 // Devtools ------------------------------------------------------------------ 105 // Devtools ------------------------------------------------------------------
140 106
141 // Indicates that a devtools agent has attached to a client. The source is 107 // Indicates that a devtools agent has attached to a client. The source is
142 // the BrowserContext* and the details is the inspected RenderViewHost*. 108 // the BrowserContext* and the details is the inspected RenderViewHost*.
143 NOTIFICATION_DEVTOOLS_AGENT_ATTACHED, 109 NOTIFICATION_DEVTOOLS_AGENT_ATTACHED,
144 110
145 // Indicates that a devtools agent has detached from a client. The source is 111 // Indicates that a devtools agent has detached from a client. The source is
146 // the BrowserContext* and the details is the inspected RenderViewHost*. 112 // the BrowserContext* and the details is the inspected RenderViewHost*.
147 NOTIFICATION_DEVTOOLS_AGENT_DETACHED, 113 NOTIFICATION_DEVTOOLS_AGENT_DETACHED,
148 114
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after
336 // The source is a NavigationController. 302 // The source is a NavigationController.
337 NOTIFICATION_REPOST_WARNING_SHOWN, 303 NOTIFICATION_REPOST_WARNING_SHOWN,
338 304
339 // Custom notifications used by the embedder should start from here. 305 // Custom notifications used by the embedder should start from here.
340 NOTIFICATION_CONTENT_END, 306 NOTIFICATION_CONTENT_END,
341 }; 307 };
342 308
343 } // namespace content 309 } // namespace content
344 310
345 #endif // CONTENT_PUBLIC_BROWSER_NOTIFICATION_TYPES_H_ 311 #endif // CONTENT_PUBLIC_BROWSER_NOTIFICATION_TYPES_H_
OLDNEW
« no previous file with comments | « content/browser/web_contents/web_contents_impl.cc ('k') | content/public/browser/web_contents_observer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698