OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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/views/page_info_window.h" | 5 #include "chrome/browser/views/page_info_window.h" |
6 | 6 |
7 #include <cryptuiapi.h> | 7 #include <cryptuiapi.h> |
8 #pragma comment(lib, "cryptui.lib") | 8 #pragma comment(lib, "cryptui.lib") |
9 | 9 |
10 #include "base/string_util.h" | 10 #include "base/string_util.h" |
(...skipping 15 matching lines...) Expand all Loading... |
26 #include "chrome/views/grid_layout.h" | 26 #include "chrome/views/grid_layout.h" |
27 #include "chrome/views/image_view.h" | 27 #include "chrome/views/image_view.h" |
28 #include "chrome/views/label.h" | 28 #include "chrome/views/label.h" |
29 #include "chrome/views/native_button.h" | 29 #include "chrome/views/native_button.h" |
30 #include "chrome/views/separator.h" | 30 #include "chrome/views/separator.h" |
31 #include "net/base/cert_status_flags.h" | 31 #include "net/base/cert_status_flags.h" |
32 #include "net/base/x509_certificate.h" | 32 #include "net/base/x509_certificate.h" |
33 #include "skia/include/SkColor.h" | 33 #include "skia/include/SkColor.h" |
34 #include "generated_resources.h" | 34 #include "generated_resources.h" |
35 | 35 |
| 36 using base::Time; |
| 37 |
36 const int kVerticalPadding = 10; | 38 const int kVerticalPadding = 10; |
37 const int kHorizontalPadding = 10; | 39 const int kHorizontalPadding = 10; |
38 | 40 |
39 //////////////////////////////////////////////////////////////////////////////// | 41 //////////////////////////////////////////////////////////////////////////////// |
40 // SecurityTabView | 42 // SecurityTabView |
41 class SecurityTabView : public views::View { | 43 class SecurityTabView : public views::View { |
42 public: | 44 public: |
43 SecurityTabView(Profile* profile, | 45 SecurityTabView(Profile* profile, |
44 const GURL& url, | 46 const GURL& url, |
45 const NavigationEntry::SSLStatus& ssl, | 47 const NavigationEntry::SSLStatus& ssl, |
(...skipping 643 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
689 HCERTSTORE cert_store = view_info.pCertContext->hCertStore; | 691 HCERTSTORE cert_store = view_info.pCertContext->hCertStore; |
690 view_info.cStores = 1; | 692 view_info.cStores = 1; |
691 view_info.rghStores = &cert_store; | 693 view_info.rghStores = &cert_store; |
692 BOOL properties_changed; | 694 BOOL properties_changed; |
693 | 695 |
694 // This next call blocks but keeps processing windows messages, making it | 696 // This next call blocks but keeps processing windows messages, making it |
695 // modal to the browser window. | 697 // modal to the browser window. |
696 BOOL rv = ::CryptUIDlgViewCertificate(&view_info, &properties_changed); | 698 BOOL rv = ::CryptUIDlgViewCertificate(&view_info, &properties_changed); |
697 } | 699 } |
698 | 700 |
OLD | NEW |