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