diff options
author | abarth@chromium.org <abarth@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-03-17 10:08:24 +0000 |
---|---|---|
committer | abarth@chromium.org <abarth@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-03-17 10:08:24 +0000 |
commit | b4a19ea2e5e85b15eb611770200a3eb76566b03a (patch) | |
tree | f4b8489110562fcf03cd32499987d7635016e556 /chrome/browser/ssl | |
parent | fc3f1b63a9bfd577600364b89899171a18f84101 (diff) | |
download | chromium_src-b4a19ea2e5e85b15eb611770200a3eb76566b03a.zip chromium_src-b4a19ea2e5e85b15eb611770200a3eb76566b03a.tar.gz chromium_src-b4a19ea2e5e85b15eb611770200a3eb76566b03a.tar.bz2 |
SSLPolicy Fix: Step 5.
Add a new notification type to notify other SSLManagers when a security origin becomes contaminated with mixed content.
TBR=wtc
BUG=8706
Review URL: http://codereview.chromium.org/48059
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@11853 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/ssl')
-rw-r--r-- | chrome/browser/ssl/ssl_manager.cc | 2 | ||||
-rw-r--r-- | chrome/browser/ssl/ssl_policy.cc | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/chrome/browser/ssl/ssl_manager.cc b/chrome/browser/ssl/ssl_manager.cc index 42fc860..f10a344 100644 --- a/chrome/browser/ssl/ssl_manager.cc +++ b/chrome/browser/ssl/ssl_manager.cc @@ -633,7 +633,7 @@ void SSLManager::DidCommitProvisionalLoad( if (changed) { // Only send the notification when something actually changed. NotificationService::current()->Notify( - NotificationType::SSL_STATE_CHANGED, + NotificationType::SSL_VISIBLE_STATE_CHANGED, Source<NavigationController>(controller_), NotificationService::NoDetails()); } diff --git a/chrome/browser/ssl/ssl_policy.cc b/chrome/browser/ssl/ssl_policy.cc index 6e627fb..599f45c 100644 --- a/chrome/browser/ssl/ssl_policy.cc +++ b/chrome/browser/ssl/ssl_policy.cc @@ -267,7 +267,7 @@ class DefaultPolicy : public SSLPolicy { if (error->manager()->SetMaxSecurityStyle( SECURITY_STYLE_AUTHENTICATION_BROKEN)) { NotificationService::current()->Notify( - NotificationType::SSL_STATE_CHANGED, + NotificationType::SSL_VISIBLE_STATE_CHANGED, Source<NavigationController>(error->manager()->controller()), Details<NavigationEntry>( error->manager()->controller()->GetActiveEntry())); @@ -322,7 +322,7 @@ class DefaultPolicy : public SSLPolicy { AddMessageToConsole(msg, MESSAGE_LEVEL_WARNING); NotificationService::current()->Notify( - NotificationType::SSL_STATE_CHANGED, + NotificationType::SSL_VISIBLE_STATE_CHANGED, Source<NavigationController>(navigation_controller), Details<NavigationEntry>(entry)); } @@ -420,7 +420,7 @@ void SSLPolicy::OnRequestStarted(SSLManager* manager, const GURL& url, if (changed) { // Only send the notification when something actually changed. NotificationService::current()->Notify( - NotificationType::SSL_STATE_CHANGED, + NotificationType::SSL_VISIBLE_STATE_CHANGED, Source<NavigationController>(manager->controller()), NotificationService::NoDetails()); } |