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/ssl_client_certificate_selector.h" | 5 #include "chrome/browser/ssl_client_certificate_selector.h" |
6 | 6 |
7 #import <SecurityInterface/SFChooseIdentityPanel.h> | 7 #import <SecurityInterface/SFChooseIdentityPanel.h> |
8 | 8 |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #import "app/l10n_util_mac.h" | 11 #import "app/l10n_util_mac.h" |
12 #include "base/logging.h" | 12 #include "base/logging.h" |
13 #include "base/ref_counted.h" | 13 #include "base/ref_counted.h" |
14 #include "base/scoped_cftyperef.h" | |
15 #import "base/scoped_nsobject.h" | 14 #import "base/scoped_nsobject.h" |
16 #include "base/string_util.h" | 15 #include "base/string_util.h" |
17 #include "base/sys_string_conversions.h" | 16 #include "base/sys_string_conversions.h" |
18 #include "base/utf_string_conversions.h" | 17 #include "base/utf_string_conversions.h" |
19 #include "chrome/browser/browser_thread.h" | 18 #include "chrome/browser/browser_thread.h" |
20 #import "chrome/browser/cocoa/constrained_window_mac.h" | 19 #import "chrome/browser/cocoa/constrained_window_mac.h" |
21 #include "chrome/browser/ssl/ssl_client_auth_handler.h" | 20 #include "chrome/browser/ssl/ssl_client_auth_handler.h" |
22 #include "chrome/browser/tab_contents/tab_contents.h" | 21 #include "chrome/browser/tab_contents/tab_contents.h" |
23 #include "grit/generated_resources.h" | 22 #include "grit/generated_resources.h" |
24 #include "net/base/x509_certificate.h" | 23 #include "net/base/x509_certificate.h" |
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
187 parent->CreateConstrainedDialog(new ConstrainedSFChooseIdentityPanel( | 186 parent->CreateConstrainedDialog(new ConstrainedSFChooseIdentityPanel( |
188 panel, self, | 187 panel, self, |
189 @selector(sheetDidEnd:returnCode:context:), | 188 @selector(sheetDidEnd:returnCode:context:), |
190 identities_, title)); | 189 identities_, title)); |
191 // Note: SFChooseIdentityPanel does not take a reference to itself while the | 190 // Note: SFChooseIdentityPanel does not take a reference to itself while the |
192 // sheet is open. Don't release the ownership claim until the sheet has ended | 191 // sheet is open. Don't release the ownership claim until the sheet has ended |
193 // in |-sheetDidEnd:returnCode:context:|. | 192 // in |-sheetDidEnd:returnCode:context:|. |
194 } | 193 } |
195 | 194 |
196 @end | 195 @end |
OLD | NEW |