From 7819e54ba24410465281d5175135cc83c60ceea0 Mon Sep 17 00:00:00 2001 From: "eranm@google.com" Date: Fri, 7 Feb 2014 13:23:32 +0000 Subject: A simple viewer for the Signed Certificate Timestamps. This is modeled somewhat after the CollectedCookiesView. There are two main components introduced: * SignedCertificateTimestampInfoView: A grid layout for showing the details of a single SCT. That's where translation of numeric fields to names happens. * SignedCertificateTimestampsViews is the dialogue itself, containing a SignedCertificateTimestampInfoView and a combo-box listing all SCTs available. This is also a grid layout with two padding columns. Additionally, a function for translating between SCT ids and actual SCTs (ShowSignedCertificateTimestampsViewerByIds) was added in signed_certificate_timestamps_viewer.h. Please ignore the changes under net - I am having them reviewed in a separate patch. BUG=338370 Review URL: https://codereview.chromium.org/106833002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@249680 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/ui/browser_dialogs.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'chrome/browser/ui/browser_dialogs.h') diff --git a/chrome/browser/ui/browser_dialogs.h b/chrome/browser/ui/browser_dialogs.h index a1f96a6..98c5514 100644 --- a/chrome/browser/ui/browser_dialogs.h +++ b/chrome/browser/ui/browser_dialogs.h @@ -6,6 +6,7 @@ #define CHROME_BROWSER_UI_BROWSER_DIALOGS_H_ #include "base/callback.h" +#include "content/public/common/signed_certificate_timestamp_id_and_status.h" #include "ipc/ipc_message.h" // For IPC_MESSAGE_LOG_ENABLED. #include "third_party/skia/include/core/SkColor.h" #include "ui/gfx/native_widget_types.h" @@ -103,6 +104,12 @@ void ShowUserManager(const base::FilePath& profile_path_to_focus); // Hides the User Manager. void HideUserManager(); +// Shows the Signed Certificate Timestamps viewer, to view the signed +// certificate timestamps in |sct_ids_list| +void ShowSignedCertificateTimestampsViewer( + content::WebContents* web_contents, + const content::SignedCertificateTimestampIDStatusList& sct_ids_list); + } // namespace chrome #endif // CHROME_BROWSER_UI_BROWSER_DIALOGS_H_ -- cgit v1.1