OLD | NEW |
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 #include "content/browser/ssl/ssl_manager.h" | 5 #include "content/browser/ssl/ssl_manager.h" |
6 | 6 |
7 #include <set> | 7 #include <set> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
(...skipping 386 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
397 void SSLManager::UpdateLastCommittedEntry(int additional_content_status_flags) { | 397 void SSLManager::UpdateLastCommittedEntry(int additional_content_status_flags) { |
398 NavigationEntryImpl* entry = controller_->GetLastCommittedEntry(); | 398 NavigationEntryImpl* entry = controller_->GetLastCommittedEntry(); |
399 if (!entry) | 399 if (!entry) |
400 return; | 400 return; |
401 UpdateEntry(entry, additional_content_status_flags); | 401 UpdateEntry(entry, additional_content_status_flags); |
402 } | 402 } |
403 | 403 |
404 void SSLManager::NotifyDidChangeVisibleSSLState() { | 404 void SSLManager::NotifyDidChangeVisibleSSLState() { |
405 WebContentsImpl* contents = | 405 WebContentsImpl* contents = |
406 static_cast<WebContentsImpl*>(controller_->delegate()->GetWebContents()); | 406 static_cast<WebContentsImpl*>(controller_->delegate()->GetWebContents()); |
407 contents->DidChangeVisibleSSLState(); | 407 contents->DidChangeVisibleSecurityState(); |
408 } | 408 } |
409 | 409 |
410 // static | 410 // static |
411 void SSLManager::NotifySSLInternalStateChanged(BrowserContext* context) { | 411 void SSLManager::NotifySSLInternalStateChanged(BrowserContext* context) { |
412 SSLManagerSet* managers = | 412 SSLManagerSet* managers = |
413 static_cast<SSLManagerSet*>(context->GetUserData(kSSLManagerKeyName)); | 413 static_cast<SSLManagerSet*>(context->GetUserData(kSSLManagerKeyName)); |
414 | 414 |
415 for (std::set<SSLManager*>::iterator i = managers->get().begin(); | 415 for (std::set<SSLManager*>::iterator i = managers->get().begin(); |
416 i != managers->get().end(); ++i) { | 416 i != managers->get().end(); ++i) { |
417 (*i)->UpdateEntry((*i)->controller()->GetLastCommittedEntry(), 0); | 417 (*i)->UpdateEntry((*i)->controller()->GetLastCommittedEntry(), 0); |
418 } | 418 } |
419 } | 419 } |
420 | 420 |
421 } // namespace content | 421 } // namespace content |
OLD | NEW |