summaryrefslogtreecommitdiffstats
path: root/chrome/browser/ssl_policy.cc
diff options
context:
space:
mode:
authorbrettw@google.com <brettw@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-08-27 18:09:07 +0000
committerbrettw@google.com <brettw@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-08-27 18:09:07 +0000
commit1e5645ff803bf73889ced446dab5b5f81e6023c0 (patch)
tree560899029aee3d7b933ae5baf1e17f89d90696a1 /chrome/browser/ssl_policy.cc
parent473343c408b846fda90eba9bd7cf96a342f6f286 (diff)
downloadchromium_src-1e5645ff803bf73889ced446dab5b5f81e6023c0.zip
chromium_src-1e5645ff803bf73889ced446dab5b5f81e6023c0.tar.gz
chromium_src-1e5645ff803bf73889ced446dab5b5f81e6023c0.tar.bz2
Cleanup navigation_entry.h. I made the accessors consistent and in Google style, and organized and commented all the entries. Hopefully it will be much easier to find things and deal with this class.
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1449 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/ssl_policy.cc')
-rw-r--r--chrome/browser/ssl_policy.cc9
1 files changed, 5 insertions, 4 deletions
diff --git a/chrome/browser/ssl_policy.cc b/chrome/browser/ssl_policy.cc
index 680844f..22d1bd7 100644
--- a/chrome/browser/ssl_policy.cc
+++ b/chrome/browser/ssl_policy.cc
@@ -102,7 +102,8 @@ static void ShowErrorPage(SSLPolicy* policy, SSLManager::CertError* error) {
true,
error->request_url(),
security_info);
- tab->controller()->GetActiveEntry()->SetPageType(NavigationEntry::ERROR_PAGE);
+ tab->controller()->GetActiveEntry()->set_page_type(
+ NavigationEntry::ERROR_PAGE);
}
static void ShowBlockingPage(SSLPolicy* policy, SSLManager::CertError* error) {
@@ -384,7 +385,7 @@ void SSLPolicy::OnRequestStarted(SSLManager* manager, const GURL& url,
}
NavigationEntry::SSLStatus& ssl = entry->ssl();
- if (!entry->GetURL().SchemeIsSecure() || // Current page is not secure.
+ if (!entry->url().SchemeIsSecure() || // Current page is not secure.
resource_type == ResourceType::MAIN_FRAME || // Main frame load.
net::IsCertStatusError(ssl.cert_status())) { // There is already
// an error for the main page, don't report sub-resources as unsafe
@@ -417,11 +418,11 @@ void SSLPolicy::OnRequestStarted(SSLManager* manager, const GURL& url,
// state will be reset.
// Now check for mixed content.
- if (entry->GetURL().SchemeIsSecure() && !url.SchemeIsSecure()) {
+ if (entry->url().SchemeIsSecure() && !url.SchemeIsSecure()) {
ssl.set_has_mixed_content();
const std::wstring& msg = l10n_util::GetStringF(
IDS_MIXED_CONTENT_LOG_MESSAGE,
- UTF8ToWide(entry->GetURL().spec()),
+ UTF8ToWide(entry->url().spec()),
UTF8ToWide(url.spec()));
manager->AddMessageToConsole(msg, MESSAGE_LEVEL_WARNING);
}