OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/gtk/certificate_manager.h" | 5 #include "chrome/browser/gtk/certificate_manager.h" |
6 | 6 |
7 #include <cert.h> | 7 #include <cert.h> |
8 #include <gtk/gtk.h> | 8 #include <gtk/gtk.h> |
9 #include <pk11pub.h> | 9 #include <pk11pub.h> |
10 | 10 |
11 #include <map> | 11 #include <map> |
12 #include <string> | 12 #include <string> |
13 | 13 |
14 #include "app/gtk_signal.h" | 14 #include "app/gtk_signal.h" |
15 #include "app/l10n_util.h" | 15 #include "app/l10n_util.h" |
16 #include "app/l10n_util_collator.h" | 16 #include "app/l10n_util_collator.h" |
17 #include "base/gtk_util.h" | 17 #include "base/gtk_util.h" |
18 #include "base/i18n/time_formatting.h" | 18 #include "base/i18n/time_formatting.h" |
19 #include "base/nss_util.h" | 19 #include "base/nss_util.h" |
20 #include "chrome/browser/browser_process.h" | 20 #include "chrome/browser/browser_process.h" |
21 #include "chrome/browser/gtk/certificate_viewer.h" | 21 #include "chrome/browser/gtk/certificate_viewer.h" |
22 #include "chrome/browser/gtk/gtk_util.h" | 22 #include "chrome/browser/gtk/gtk_util.h" |
23 #include "chrome/browser/pref_member.h" | 23 #include "chrome/browser/prefs/pref_member.h" |
24 #include "chrome/browser/pref_service.h" | 24 #include "chrome/browser/prefs/pref_service.h" |
25 #include "chrome/browser/profile.h" | 25 #include "chrome/browser/profile.h" |
26 #include "chrome/common/pref_names.h" | 26 #include "chrome/common/pref_names.h" |
27 #include "chrome/third_party/mozilla_security_manager/nsNSSCertHelper.h" | 27 #include "chrome/third_party/mozilla_security_manager/nsNSSCertHelper.h" |
28 #include "chrome/third_party/mozilla_security_manager/nsNSSCertificate.h" | 28 #include "chrome/third_party/mozilla_security_manager/nsNSSCertificate.h" |
29 #include "grit/generated_resources.h" | 29 #include "grit/generated_resources.h" |
30 | 30 |
31 // PSM = Mozilla's Personal Security Manager. | 31 // PSM = Mozilla's Personal Security Manager. |
32 namespace psm = mozilla_security_manager; | 32 namespace psm = mozilla_security_manager; |
33 | 33 |
34 namespace { | 34 namespace { |
(...skipping 470 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
505 } | 505 } |
506 | 506 |
507 } // namespace certificate_manager_util | 507 } // namespace certificate_manager_util |
508 | 508 |
509 void ShowCertificateManager(gfx::NativeWindow parent, Profile* profile, | 509 void ShowCertificateManager(gfx::NativeWindow parent, Profile* profile, |
510 CertificateManagerPage page) { | 510 CertificateManagerPage page) { |
511 base::EnsureNSSInit(); | 511 base::EnsureNSSInit(); |
512 CertificateManager* manager = new CertificateManager(parent, profile); | 512 CertificateManager* manager = new CertificateManager(parent, profile); |
513 manager->ShowCertificatePage(page); | 513 manager->ShowCertificatePage(page); |
514 } | 514 } |
OLD | NEW |