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

Side by Side Diff: chrome/browser/ui/webui/certificate_viewer.h

Issue 7670041: Add --use-more-webui runtime flag to toggle WebUI replacements for native dialogs. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Merge with trunk. Created 9 years, 3 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
« no previous file with comments | « chrome/browser/ui/webui/bookmarks_ui.cc ('k') | chrome/browser/ui/webui/certificate_viewer.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 #ifndef CHROME_BROWSER_UI_WEBUI_CERTIFICATE_VIEWER_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_CERTIFICATE_VIEWER_H_
6 #define CHROME_BROWSER_UI_WEBUI_CERTIFICATE_VIEWER_H_ 6 #define CHROME_BROWSER_UI_WEBUI_CERTIFICATE_VIEWER_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/values.h" 9 #include "base/values.h"
10 #include "chrome/browser/ui/webui/html_dialog_ui.h" 10 #include "chrome/browser/ui/webui/html_dialog_ui.h"
11 #include "net/base/x509_certificate.h" 11 #include "net/base/x509_certificate.h"
12 #include "ui/gfx/native_widget_types.h" 12 #include "ui/gfx/native_widget_types.h"
13 13
14 // Displays the WebUI certificate viewer dialog for the passed in certificate. 14 // Displays the native or WebUI certificate viewer dialog for the given
15 // certificate.
15 void ShowCertificateViewer(gfx::NativeWindow parent, 16 void ShowCertificateViewer(gfx::NativeWindow parent,
16 net::X509Certificate*); 17 net::X509Certificate*);
17 18
18 // Dialog for displaying detailed certificate information. This is used in linux 19 // Dialog for displaying detailed certificate information. This is used in linux
19 // and chromeos builds to display detailed information in a floating dialog when 20 // and chromeos builds to display detailed information in a floating dialog when
20 // the user clicks on "Certificate Information" from the lock icon of a web site 21 // the user clicks on "Certificate Information" from the lock icon of a web site
21 // or "View" from the Certificate Manager. 22 // or "View" from the Certificate Manager.
22 class CertificateViewerDialog : private HtmlDialogUIDelegate { 23 class CertificateViewerDialog : private HtmlDialogUIDelegate {
23 public: 24 public:
24 // Shows the certificate viewer dialog for the passed in certificate. 25 // Shows the certificate viewer dialog for the passed in certificate.
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 // The parent window. 93 // The parent window.
93 gfx::NativeWindow parent_; 94 gfx::NativeWindow parent_;
94 95
95 // The certificate chain. 96 // The certificate chain.
96 net::X509Certificate::OSCertHandles cert_chain_; 97 net::X509Certificate::OSCertHandles cert_chain_;
97 98
98 DISALLOW_COPY_AND_ASSIGN(CertificateViewerDialogHandler); 99 DISALLOW_COPY_AND_ASSIGN(CertificateViewerDialogHandler);
99 }; 100 };
100 101
101 #endif // CHROME_BROWSER_UI_WEBUI_CERTIFICATE_VIEWER_H_ 102 #endif // CHROME_BROWSER_UI_WEBUI_CERTIFICATE_VIEWER_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/bookmarks_ui.cc ('k') | chrome/browser/ui/webui/certificate_viewer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698