| OLD | NEW |
| 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 #import "chrome/browser/ui/cocoa/certificate_viewer_mac.h" | 5 #import "chrome/browser/ui/cocoa/certificate_viewer_mac.h" |
| 6 | 6 |
| 7 #include <Security/Security.h> | 7 #include <Security/Security.h> |
| 8 #include <SecurityInterface/SFCertificatePanel.h> | 8 #include <SecurityInterface/SFCertificatePanel.h> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| 11 #include "base/mac/foundation_util.h" | 11 #include "base/mac/foundation_util.h" |
| 12 #include "base/mac/scoped_cftyperef.h" | 12 #include "base/mac/scoped_cftyperef.h" |
| 13 #include "base/macros.h" |
| 13 #include "chrome/browser/certificate_viewer.h" | 14 #include "chrome/browser/certificate_viewer.h" |
| 14 #import "chrome/browser/ui/cocoa/constrained_window/constrained_window_mac.h" | 15 #import "chrome/browser/ui/cocoa/constrained_window/constrained_window_mac.h" |
| 15 #import "chrome/browser/ui/cocoa/constrained_window/constrained_window_sheet.h" | 16 #import "chrome/browser/ui/cocoa/constrained_window/constrained_window_sheet.h" |
| 16 #import "chrome/browser/ui/cocoa/constrained_window/constrained_window_sheet_con
troller.h" | 17 #import "chrome/browser/ui/cocoa/constrained_window/constrained_window_sheet_con
troller.h" |
| 17 #include "net/cert/x509_certificate.h" | 18 #include "net/cert/x509_certificate.h" |
| 18 #include "net/cert/x509_util_mac.h" | 19 #include "net/cert/x509_util_mac.h" |
| 19 #import "ui/base/cocoa/window_size_constants.h" | 20 #import "ui/base/cocoa/window_size_constants.h" |
| 20 | 21 |
| 21 class SSLCertificateViewerCocoaBridge; | 22 class SSLCertificateViewerCocoaBridge; |
| 22 | 23 |
| (...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 192 return panel_; | 193 return panel_; |
| 193 } | 194 } |
| 194 | 195 |
| 195 - (void)onConstrainedWindowClosed { | 196 - (void)onConstrainedWindowClosed { |
| 196 panel_.reset(); | 197 panel_.reset(); |
| 197 constrainedWindow_.reset(); | 198 constrainedWindow_.reset(); |
| 198 [self release]; | 199 [self release]; |
| 199 } | 200 } |
| 200 | 201 |
| 201 @end | 202 @end |
| OLD | NEW |