| 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 #ifndef CHROME_BROWSER_UI_COCOA_SSL_CLIENT_CERTIFICATE_SELECTOR_COCOA_H_ | 5 #ifndef CHROME_BROWSER_UI_COCOA_SSL_CLIENT_CERTIFICATE_SELECTOR_COCOA_H_ |
| 6 #define CHROME_BROWSER_UI_COCOA_SSL_CLIENT_CERTIFICATE_SELECTOR_COCOA_H_ | 6 #define CHROME_BROWSER_UI_COCOA_SSL_CLIENT_CERTIFICATE_SELECTOR_COCOA_H_ |
| 7 | 7 |
| 8 #import <Cocoa/Cocoa.h> | 8 #import <Cocoa/Cocoa.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| 11 #include <vector> | 11 #include <vector> |
| 12 | 12 |
| 13 #include "base/mac/scoped_cftyperef.h" | 13 #include "base/mac/scoped_cftyperef.h" |
| 14 #include "base/mac/scoped_nsobject.h" | 14 #include "base/mac/scoped_nsobject.h" |
| 15 #include "base/memory/ref_counted.h" | 15 #include "base/memory/ref_counted.h" |
| 16 #include "chrome/browser/ssl/ssl_client_certificate_selector.h" | 16 #include "chrome/browser/ssl/ssl_client_certificate_selector.h" |
| 17 #import "chrome/browser/ui/cocoa/constrained_window/constrained_window_custom_sh
eet.h" | 17 #import "chrome/browser/ui/cocoa/constrained_window/constrained_window_custom_sh
eet.h" |
| 18 #import "chrome/browser/ui/cocoa/constrained_window/constrained_window_sheet_con
troller.h" | 18 #import "chrome/browser/ui/cocoa/constrained_window/constrained_window_sheet_con
troller.h" |
| 19 #include "net/cert/x509_certificate.h" |
| 19 | 20 |
| 20 namespace content { | 21 namespace content { |
| 21 class BrowserContext; | 22 class BrowserContext; |
| 22 class ClientCertificateDelegate; | 23 class ClientCertificateDelegate; |
| 23 } | 24 } |
| 24 | 25 |
| 25 namespace net { | |
| 26 class X509Certificate; | |
| 27 } | |
| 28 | |
| 29 class ConstrainedWindowMac; | 26 class ConstrainedWindowMac; |
| 30 @class SFChooseIdentityPanel; | 27 @class SFChooseIdentityPanel; |
| 31 class SSLClientAuthObserverCocoaBridge; | 28 class SSLClientAuthObserverCocoaBridge; |
| 32 | 29 |
| 33 @interface SSLClientCertificateSelectorCocoa | 30 @interface SSLClientCertificateSelectorCocoa |
| 34 : NSObject<ConstrainedWindowSheet> { | 31 : NSObject<ConstrainedWindowSheet> { |
| 35 @private | 32 @private |
| 36 // The list of identities offered to the user. | 33 // The list of identities offered to the user. |
| 37 base::ScopedCFTypeRef<CFMutableArrayRef> identities_; | 34 base::ScopedCFTypeRef<CFMutableArrayRef> identities_; |
| 38 // The corresponding list of certificates. | 35 // The corresponding list of certificates. |
| (...skipping 12 matching lines...) Expand all Loading... |
| 51 BOOL userResponded_; | 48 BOOL userResponded_; |
| 52 } | 49 } |
| 53 | 50 |
| 54 @property (readonly, nonatomic) SFChooseIdentityPanel* panel; | 51 @property (readonly, nonatomic) SFChooseIdentityPanel* panel; |
| 55 | 52 |
| 56 - (id)initWithBrowserContext:(const content::BrowserContext*)browserContext | 53 - (id)initWithBrowserContext:(const content::BrowserContext*)browserContext |
| 57 certRequestInfo:(net::SSLCertRequestInfo*)certRequestInfo | 54 certRequestInfo:(net::SSLCertRequestInfo*)certRequestInfo |
| 58 delegate: | 55 delegate: |
| 59 (std::unique_ptr<content::ClientCertificateDelegate>) | 56 (std::unique_ptr<content::ClientCertificateDelegate>) |
| 60 delegate; | 57 delegate; |
| 61 - (void)displayForWebContents:(content::WebContents*)webContents; | 58 - (void)displayForWebContents:(content::WebContents*)webContents |
| 59 clientCerts:(net::CertificateList)inputClientCerts; |
| 62 - (void)closeWebContentsModalDialog; | 60 - (void)closeWebContentsModalDialog; |
| 63 | 61 |
| 64 - (NSWindow*)overlayWindow; | 62 - (NSWindow*)overlayWindow; |
| 65 | 63 |
| 66 @end | 64 @end |
| 67 | 65 |
| 68 #endif // CHROME_BROWSER_UI_COCOA_SSL_CLIENT_CERTIFICATE_SELECTOR_COCOA_H_ | 66 #endif // CHROME_BROWSER_UI_COCOA_SSL_CLIENT_CERTIFICATE_SELECTOR_COCOA_H_ |
| OLD | NEW |