OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #include "base/logging.h" | 11 #include "base/logging.h" |
12 #include "base/memory/ref_counted.h" | 12 #include "base/memory/ref_counted.h" |
13 #import "base/memory/scoped_nsobject.h" | 13 #import "base/memory/scoped_nsobject.h" |
14 #include "base/string_util.h" | 14 #include "base/string_util.h" |
15 #include "base/sys_string_conversions.h" | 15 #include "base/sys_string_conversions.h" |
16 #include "base/utf_string_conversions.h" | 16 #include "base/utf_string_conversions.h" |
17 #include "chrome/browser/ssl/ssl_client_auth_handler.h" | |
18 #import "chrome/browser/ui/cocoa/constrained_window_mac.h" | 17 #import "chrome/browser/ui/cocoa/constrained_window_mac.h" |
19 #include "content/browser/browser_thread.h" | 18 #include "content/browser/browser_thread.h" |
| 19 #include "content/browser/ssl/ssl_client_auth_handler.h" |
20 #include "content/browser/tab_contents/tab_contents.h" | 20 #include "content/browser/tab_contents/tab_contents.h" |
21 #include "grit/generated_resources.h" | 21 #include "grit/generated_resources.h" |
22 #include "net/base/x509_certificate.h" | 22 #include "net/base/x509_certificate.h" |
23 #include "ui/base/l10n/l10n_util_mac.h" | 23 #include "ui/base/l10n/l10n_util_mac.h" |
24 | 24 |
25 namespace { | 25 namespace { |
26 | 26 |
27 class ConstrainedSFChooseIdentityPanel | 27 class ConstrainedSFChooseIdentityPanel |
28 : public ConstrainedWindowMacDelegateSystemSheet { | 28 : public ConstrainedWindowMacDelegateSystemSheet { |
29 public: | 29 public: |
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
186 parent->CreateConstrainedDialog(new ConstrainedSFChooseIdentityPanel( | 186 parent->CreateConstrainedDialog(new ConstrainedSFChooseIdentityPanel( |
187 panel, self, | 187 panel, self, |
188 @selector(sheetDidEnd:returnCode:context:), | 188 @selector(sheetDidEnd:returnCode:context:), |
189 identities_, title)); | 189 identities_, title)); |
190 // Note: SFChooseIdentityPanel does not take a reference to itself while the | 190 // Note: SFChooseIdentityPanel does not take a reference to itself while the |
191 // 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 |
192 // in |-sheetDidEnd:returnCode:context:|. | 192 // in |-sheetDidEnd:returnCode:context:|. |
193 } | 193 } |
194 | 194 |
195 @end | 195 @end |
OLD | NEW |