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 #import "chrome/browser/ui/cocoa/constrained_window_mac.h" | 17 #import "chrome/browser/ui/cocoa/constrained_window_mac.h" |
18 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h" | 18 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h" |
19 #include "content/browser/ssl/ssl_client_auth_handler.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 "content/public/browser/browser_thread.h" | 21 #include "content/public/browser/browser_thread.h" |
22 #include "grit/generated_resources.h" | 22 #include "grit/generated_resources.h" |
23 #include "net/base/x509_certificate.h" | 23 #include "net/base/x509_certificate.h" |
24 #include "ui/base/l10n/l10n_util_mac.h" | 24 #include "ui/base/l10n/l10n_util_mac.h" |
25 | 25 |
| 26 using content::BrowserThread; |
| 27 |
26 @interface SFChooseIdentityPanel (SystemPrivate) | 28 @interface SFChooseIdentityPanel (SystemPrivate) |
27 // A system-private interface that dismisses a panel whose sheet was started by | 29 // A system-private interface that dismisses a panel whose sheet was started by |
28 // beginSheetForWindow:modalDelegate:didEndSelector:contextInfo:identities:messa
ge: | 30 // beginSheetForWindow:modalDelegate:didEndSelector:contextInfo:identities:messa
ge: |
29 // as though the user clicked the button identified by returnCode. Verified | 31 // as though the user clicked the button identified by returnCode. Verified |
30 // present in 10.5, 10.6, and 10.7. | 32 // present in 10.5, 10.6, and 10.7. |
31 - (void)_dismissWithCode:(NSInteger)code; | 33 - (void)_dismissWithCode:(NSInteger)code; |
32 @end | 34 @end |
33 | 35 |
34 namespace { | 36 namespace { |
35 class NotificationProxy; | 37 class NotificationProxy; |
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
231 panel, self, | 233 panel, self, |
232 @selector(sheetDidEnd:returnCode:context:), | 234 @selector(sheetDidEnd:returnCode:context:), |
233 identities_, title)); | 235 identities_, title)); |
234 observer_->StartObserving(); | 236 observer_->StartObserving(); |
235 // Note: SFChooseIdentityPanel does not take a reference to itself while the | 237 // Note: SFChooseIdentityPanel does not take a reference to itself while the |
236 // sheet is open. ConstrainedSFChooseIdentityPanel will release ownership | 238 // sheet is open. ConstrainedSFChooseIdentityPanel will release ownership |
237 // on destruction. | 239 // on destruction. |
238 } | 240 } |
239 | 241 |
240 @end | 242 @end |
OLD | NEW |