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 #include "chrome/browser/ui/certificate_dialogs.h" | 5 #include "chrome/browser/ui/certificate_dialogs.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include <algorithm> | 9 #include <algorithm> |
| 10 #include <memory> |
10 #include <vector> | 11 #include <vector> |
11 | 12 |
12 #include "base/base64.h" | 13 #include "base/base64.h" |
13 #include "base/bind.h" | 14 #include "base/bind.h" |
14 #include "base/files/file_util.h" | 15 #include "base/files/file_util.h" |
15 #include "base/logging.h" | 16 #include "base/logging.h" |
16 #include "base/memory/scoped_ptr.h" | |
17 #include "chrome/browser/ui/chrome_select_file_policy.h" | 17 #include "chrome/browser/ui/chrome_select_file_policy.h" |
18 #include "chrome/common/net/x509_certificate_model.h" | 18 #include "chrome/common/net/x509_certificate_model.h" |
19 #include "chrome/grit/generated_resources.h" | 19 #include "chrome/grit/generated_resources.h" |
20 #include "content/public/browser/browser_thread.h" | 20 #include "content/public/browser/browser_thread.h" |
21 #include "net/base/filename_util.h" | 21 #include "net/base/filename_util.h" |
22 #include "ui/base/l10n/l10n_util.h" | 22 #include "ui/base/l10n/l10n_util.h" |
23 #include "ui/shell_dialogs/select_file_dialog.h" | 23 #include "ui/shell_dialogs/select_file_dialog.h" |
24 #include "url/gurl.h" | 24 #include "url/gurl.h" |
25 | 25 |
26 using content::BrowserThread; | 26 using content::BrowserThread; |
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
209 new Exporter(web_contents, parent, cert_chain.begin(), cert_chain.end()); | 209 new Exporter(web_contents, parent, cert_chain.begin(), cert_chain.end()); |
210 } | 210 } |
211 | 211 |
212 void ShowCertExportDialog( | 212 void ShowCertExportDialog( |
213 content::WebContents* web_contents, | 213 content::WebContents* web_contents, |
214 gfx::NativeWindow parent, | 214 gfx::NativeWindow parent, |
215 net::X509Certificate::OSCertHandles::iterator certs_begin, | 215 net::X509Certificate::OSCertHandles::iterator certs_begin, |
216 net::X509Certificate::OSCertHandles::iterator certs_end) { | 216 net::X509Certificate::OSCertHandles::iterator certs_end) { |
217 new Exporter(web_contents, parent, certs_begin, certs_end); | 217 new Exporter(web_contents, parent, certs_begin, certs_end); |
218 } | 218 } |
OLD | NEW |