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

Side by Side Diff: chrome/browser/ssl/ssl_error_info.cc

Issue 12680003: net: split net/ssl out of net/base (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 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/ssl/ssl_error_info.h" 5 #include "chrome/browser/ssl/ssl_error_info.h"
6 6
7 #include "base/i18n/time_formatting.h" 7 #include "base/i18n/time_formatting.h"
8 #include "base/utf_string_conversions.h" 8 #include "base/utf_string_conversions.h"
9 #include "chrome/common/time_format.h" 9 #include "chrome/common/time_format.h"
10 #include "content/public/browser/cert_store.h" 10 #include "content/public/browser/cert_store.h"
11 #include "googleurl/src/gurl.h" 11 #include "googleurl/src/gurl.h"
12 #include "grit/chromium_strings.h" 12 #include "grit/chromium_strings.h"
13 #include "grit/generated_resources.h" 13 #include "grit/generated_resources.h"
14 #include "net/base/cert_status_flags.h" 14 #include "net/base/cert_status_flags.h"
15 #include "net/base/escape.h" 15 #include "net/base/escape.h"
16 #include "net/base/net_errors.h" 16 #include "net/base/net_errors.h"
17 #include "net/base/ssl_info.h" 17 #include "net/ssl/ssl_info.h"
18 #include "ui/base/l10n/l10n_util.h" 18 #include "ui/base/l10n/l10n_util.h"
19 19
20 SSLErrorInfo::SSLErrorInfo(const string16& title, 20 SSLErrorInfo::SSLErrorInfo(const string16& title,
21 const string16& details, 21 const string16& details,
22 const string16& short_description, 22 const string16& short_description,
23 const std::vector<string16>& extra_info) 23 const std::vector<string16>& extra_info)
24 : title_(title), 24 : title_(title),
25 details_(details), 25 details_(details),
26 short_description_(short_description), 26 short_description_(short_description),
27 extra_information_(extra_info) { 27 extra_information_(extra_info) {
(...skipping 250 matching lines...) Expand 10 before | Expand all | Expand 10 after
278 bool r = content::CertStore::GetInstance()->RetrieveCert( 278 bool r = content::CertStore::GetInstance()->RetrieveCert(
279 cert_id, &cert); 279 cert_id, &cert);
280 DCHECK(r); 280 DCHECK(r);
281 } 281 }
282 if (errors) 282 if (errors)
283 errors->push_back(SSLErrorInfo::CreateError(kErrorTypes[i], cert, url)); 283 errors->push_back(SSLErrorInfo::CreateError(kErrorTypes[i], cert, url));
284 } 284 }
285 } 285 }
286 return count; 286 return count;
287 } 287 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698