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

Side by Side Diff: chrome/browser/website_settings_model.cc

Issue 9691003: Add Content API around CertStore. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix clang Created 8 years, 9 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 #include "chrome/browser/website_settings_model.h" 5 #include "chrome/browser/website_settings_model.h"
6 6
7 #include <string> 7 #include <string>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/string_number_conversions.h" 10 #include "base/string_number_conversions.h"
11 #include "base/utf_string_conversions.h" 11 #include "base/utf_string_conversions.h"
12 #include "chrome/browser/profiles/profile.h" 12 #include "chrome/browser/profiles/profile.h"
13 #include "chrome/browser/ssl/ssl_error_info.h" 13 #include "chrome/browser/ssl/ssl_error_info.h"
14 #include "content/browser/cert_store.h" 14 #include "content/public/browser/cert_store.h"
15 #include "content/public/common/ssl_status.h" 15 #include "content/public/common/ssl_status.h"
16 #include "content/public/common/url_constants.h" 16 #include "content/public/common/url_constants.h"
17 #include "grit/chromium_strings.h" 17 #include "grit/chromium_strings.h"
18 #include "grit/generated_resources.h" 18 #include "grit/generated_resources.h"
19 #include "net/base/cert_status_flags.h" 19 #include "net/base/cert_status_flags.h"
20 #include "net/base/ssl_cipher_suite_names.h" 20 #include "net/base/ssl_cipher_suite_names.h"
21 #include "net/base/ssl_connection_status_flags.h" 21 #include "net/base/ssl_connection_status_flags.h"
22 #include "net/base/x509_certificate.h" 22 #include "net/base/x509_certificate.h"
23 #include "ui/base/l10n/l10n_util.h" 23 #include "ui/base/l10n/l10n_util.h"
24 #include "ui/base/resource/resource_bundle.h" 24 #include "ui/base/resource/resource_bundle.h"
25 25
26 WebsiteSettingsModel::WebsiteSettingsModel(Profile* profile, 26 WebsiteSettingsModel::WebsiteSettingsModel(Profile* profile,
27 const GURL& url, 27 const GURL& url,
28 const content::SSLStatus& ssl, 28 const content::SSLStatus& ssl,
29 CertStore* cert_store) 29 content::CertStore* cert_store)
30 : site_identity_status_(SITE_IDENTITY_STATUS_UNKNOWN), 30 : site_identity_status_(SITE_IDENTITY_STATUS_UNKNOWN),
31 site_connection_status_(SITE_CONNECTION_STATUS_UNKNOWN), 31 site_connection_status_(SITE_CONNECTION_STATUS_UNKNOWN),
32 cert_store_(cert_store) { 32 cert_store_(cert_store) {
33 Init(profile, url, ssl); 33 Init(profile, url, ssl);
34 // After initialization the status about the site's connection 34 // After initialization the status about the site's connection
35 // and it's identity must be available. 35 // and it's identity must be available.
36 DCHECK_NE(site_identity_status_, SITE_IDENTITY_STATUS_UNKNOWN); 36 DCHECK_NE(site_identity_status_, SITE_IDENTITY_STATUS_UNKNOWN);
37 DCHECK_NE(site_connection_status_, SITE_CONNECTION_STATUS_UNKNOWN); 37 DCHECK_NE(site_connection_status_, SITE_CONNECTION_STATUS_UNKNOWN);
38 } 38 }
39 39
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after
253 site_connection_details_ += l10n_util::GetStringUTF16( 253 site_connection_details_ += l10n_util::GetStringUTF16(
254 IDS_PAGE_INFO_SECURITY_TAB_FALLBACK_MESSAGE); 254 IDS_PAGE_INFO_SECURITY_TAB_FALLBACK_MESSAGE);
255 } 255 }
256 if (no_renegotiation) { 256 if (no_renegotiation) {
257 site_connection_details_ += ASCIIToUTF16("\n\n"); 257 site_connection_details_ += ASCIIToUTF16("\n\n");
258 site_connection_details_ += l10n_util::GetStringUTF16( 258 site_connection_details_ += l10n_util::GetStringUTF16(
259 IDS_PAGE_INFO_SECURITY_TAB_RENEGOTIATION_MESSAGE); 259 IDS_PAGE_INFO_SECURITY_TAB_RENEGOTIATION_MESSAGE);
260 } 260 }
261 } 261 }
262 } 262 }
OLDNEW
« no previous file with comments | « chrome/browser/website_settings_model.h ('k') | chrome/browser/website_settings_model_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698