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

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

Issue 7919028: Revert 101581 - Add --use-more-webui runtime flag to toggle WebUI replacements for native dialogs. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: 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 native or WebUI certificate viewer dialog for the given 14 // Displays the WebUI certificate viewer dialog for the passed in certificate.
15 // certificate.
16 void ShowCertificateViewer(gfx::NativeWindow parent, 15 void ShowCertificateViewer(gfx::NativeWindow parent,
17 net::X509Certificate*); 16 net::X509Certificate*);
18 17
19 // Dialog for displaying detailed certificate information. This is used in linux 18 // Dialog for displaying detailed certificate information. This is used in linux
20 // and chromeos builds to display detailed information in a floating dialog when 19 // and chromeos builds to display detailed information in a floating dialog when
21 // the user clicks on "Certificate Information" from the lock icon of a web site 20 // the user clicks on "Certificate Information" from the lock icon of a web site
22 // or "View" from the Certificate Manager. 21 // or "View" from the Certificate Manager.
23 class CertificateViewerDialog : private HtmlDialogUIDelegate { 22 class CertificateViewerDialog : private HtmlDialogUIDelegate {
24 public: 23 public:
25 // Shows the certificate viewer dialog for the passed in certificate. 24 // Shows the certificate viewer dialog for the passed in certificate.
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 // The parent window. 92 // The parent window.
94 gfx::NativeWindow parent_; 93 gfx::NativeWindow parent_;
95 94
96 // The certificate chain. 95 // The certificate chain.
97 net::X509Certificate::OSCertHandles cert_chain_; 96 net::X509Certificate::OSCertHandles cert_chain_;
98 97
99 DISALLOW_COPY_AND_ASSIGN(CertificateViewerDialogHandler); 98 DISALLOW_COPY_AND_ASSIGN(CertificateViewerDialogHandler);
100 }; 99 };
101 100
102 #endif // CHROME_BROWSER_UI_WEBUI_CERTIFICATE_VIEWER_H_ 101 #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