Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(642)

Side by Side Diff: chrome/browser/ui/certificate_dialogs.h

Issue 376753002: Fix webui cert viewer showing wrong cert chain on NSS and no chain on OpenSSL. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: comments Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 #ifndef CHROME_BROWSER_UI_CERTIFICATE_DIALOGS_H_ 5 #ifndef CHROME_BROWSER_UI_CERTIFICATE_DIALOGS_H_
6 #define CHROME_BROWSER_UI_CERTIFICATE_DIALOGS_H_ 6 #define CHROME_BROWSER_UI_CERTIFICATE_DIALOGS_H_
7 7
8 #include "net/cert/x509_certificate.h" 8 #include "net/cert/x509_certificate.h"
9 #include "ui/shell_dialogs/select_file_dialog.h" 9 #include "ui/shell_dialogs/select_file_dialog.h"
10 10
11 namespace content { 11 namespace content {
12 class WebContents; 12 class WebContents;
13 } 13 }
14 14
15 void ShowCertSelectFileDialog(ui::SelectFileDialog* select_file_dialog, 15 void ShowCertSelectFileDialog(ui::SelectFileDialog* select_file_dialog,
16 ui::SelectFileDialog::Type type, 16 ui::SelectFileDialog::Type type,
17 const base::FilePath& suggested_path, 17 const base::FilePath& suggested_path,
18 gfx::NativeWindow parent, 18 gfx::NativeWindow parent,
19 void* params); 19 void* params);
20 20
21 // Show a save dialog allowing to save |cert| alone or the cert + its chain.
msw 2014/07/11 17:25:40 nit: consider: "Show a dialog to save |cert|, pote
mattm 2014/07/11 22:21:57 removed
21 void ShowCertExportDialog(content::WebContents* web_contents, 22 void ShowCertExportDialog(content::WebContents* web_contents,
22 gfx::NativeWindow parent, 23 gfx::NativeWindow parent,
23 net::X509Certificate::OSCertHandle cert); 24 const scoped_refptr<net::X509Certificate>& cert);
25
26 // Show a save dialog allowing to save the certificate pointed to by
msw 2014/07/11 17:25:40 nit: consider: "Show a dialog to save the chain of
mattm 2014/07/11 22:21:57 done(-ish)
27 // |certs_begin| or the entire chain of |certs_begin|..|certs_end|.
28 void ShowCertExportDialog(
msw 2014/07/11 17:25:40 Overloading function names is discouraged, can you
mattm 2014/07/11 22:21:57 Done.
29 content::WebContents* web_contents,
30 gfx::NativeWindow parent,
31 net::X509Certificate::OSCertHandles::iterator certs_begin,
32 net::X509Certificate::OSCertHandles::iterator certs_end);
24 33
25 #endif // CHROME_BROWSER_UI_CERTIFICATE_DIALOGS_H_ 34 #endif // CHROME_BROWSER_UI_CERTIFICATE_DIALOGS_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/certificate_dialogs.cc » ('j') | chrome/browser/ui/certificate_dialogs.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698