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

Side by Side Diff: chrome/browser/ui/gtk/certificate_viewer.cc

Issue 6805019: Move crypto files out of base, to a top level directory. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Fixes comments by eroman Created 9 years, 8 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/ui/gtk/certificate_viewer.h" 5 #include "chrome/browser/ui/gtk/certificate_viewer.h"
6 6
7 #include <gtk/gtk.h> 7 #include <gtk/gtk.h>
8 8
9 #include <algorithm> 9 #include <algorithm>
10 #include <vector> 10 #include <vector>
11 11
12 #include "base/i18n/time_formatting.h" 12 #include "base/i18n/time_formatting.h"
13 #include "base/memory/scoped_ptr.h" 13 #include "base/memory/scoped_ptr.h"
14 #include "base/nss_util.h"
15 #include "base/string_number_conversions.h" 14 #include "base/string_number_conversions.h"
16 #include "base/time.h" 15 #include "base/time.h"
17 #include "base/utf_string_conversions.h" 16 #include "base/utf_string_conversions.h"
18 #include "chrome/browser/ui/gtk/certificate_dialogs.h" 17 #include "chrome/browser/ui/gtk/certificate_dialogs.h"
19 #include "chrome/browser/ui/gtk/gtk_util.h" 18 #include "chrome/browser/ui/gtk/gtk_util.h"
20 #include "chrome/common/net/x509_certificate_model.h" 19 #include "chrome/common/net/x509_certificate_model.h"
21 #include "grit/generated_resources.h" 20 #include "grit/generated_resources.h"
22 #include "net/base/x509_certificate.h" 21 #include "net/base/x509_certificate.h"
23 #include "ui/base/l10n/l10n_util.h" 22 #include "ui/base/l10n/l10n_util.h"
24 #include "ui/gfx/gtk_util.h" 23 #include "ui/gfx/gtk_util.h"
(...skipping 687 matching lines...) Expand 10 before | Expand all | Expand 10 after
712 net::X509Certificate::OSCertHandle cert) { 711 net::X509Certificate::OSCertHandle cert) {
713 net::X509Certificate::OSCertHandles cert_chain; 712 net::X509Certificate::OSCertHandles cert_chain;
714 x509_certificate_model::GetCertChainFromCert(cert, &cert_chain); 713 x509_certificate_model::GetCertChainFromCert(cert, &cert_chain);
715 (new CertificateViewer(parent, cert_chain))->Show(); 714 (new CertificateViewer(parent, cert_chain))->Show();
716 } 715 }
717 716
718 void ShowCertificateViewer(gfx::NativeWindow parent, 717 void ShowCertificateViewer(gfx::NativeWindow parent,
719 net::X509Certificate* cert) { 718 net::X509Certificate* cert) {
720 ShowCertificateViewer(parent, cert->os_cert_handle()); 719 ShowCertificateViewer(parent, cert->os_cert_handle());
721 } 720 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/crypto_module_password_dialog_nss.cc ('k') | chrome/browser/ui/gtk/crypto_module_password_dialog.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698