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

Side by Side Diff: chrome/browser/ui/webui/ssl_client_certificate_selector_webui.cc

Issue 8986007: Move WebUIMessageHandler to its own file in the public directory and put it in the content namesp... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 8 years, 11 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) 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 #include "chrome/browser/ui/webui/ssl_client_certificate_selector_webui.h" 5 #include "chrome/browser/ui/webui/ssl_client_certificate_selector_webui.h"
6 6
7 #include <vector> 7 #include <vector>
8 #include <string> 8 #include <string>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 10 matching lines...) Expand all
21 #include "chrome/browser/ui/webui/chrome_web_ui_data_source.h" 21 #include "chrome/browser/ui/webui/chrome_web_ui_data_source.h"
22 #include "chrome/browser/ui/webui/constrained_html_ui.h" 22 #include "chrome/browser/ui/webui/constrained_html_ui.h"
23 #include "chrome/common/net/x509_certificate_model.h" 23 #include "chrome/common/net/x509_certificate_model.h"
24 #include "chrome/common/url_constants.h" 24 #include "chrome/common/url_constants.h"
25 #include "grit/browser_resources.h" 25 #include "grit/browser_resources.h"
26 #include "grit/generated_resources.h" 26 #include "grit/generated_resources.h"
27 #include "ui/base/l10n/l10n_util.h" 27 #include "ui/base/l10n/l10n_util.h"
28 #include "ui/gfx/size.h" 28 #include "ui/gfx/size.h"
29 29
30 using content::WebContents; 30 using content::WebContents;
31 using content::WebUIMessageHandler;
31 32
32 namespace { 33 namespace {
33 34
34 const int kDialogWidth = 460; 35 const int kDialogWidth = 460;
35 const int kDialogHeight = 382; 36 const int kDialogHeight = 382;
36 37
37 // Formats a certificate into details text. 38 // Formats a certificate into details text.
38 std::string FormatDetailsText( 39 std::string FormatDetailsText(
39 net::X509Certificate::OSCertHandle cert) { 40 net::X509Certificate::OSCertHandle cert) {
40 std::string rv; 41 std::string rv;
(...skipping 265 matching lines...) Expand 10 before | Expand all | Expand 10 after
306 cert_request_info, 307 cert_request_info,
307 delegate); 308 delegate);
308 else 309 else
309 ShowNativeSSLClientCertificateSelector(wrapper, 310 ShowNativeSSLClientCertificateSelector(wrapper,
310 cert_request_info, 311 cert_request_info,
311 delegate); 312 delegate);
312 #endif 313 #endif
313 } 314 }
314 315
315 } // namespace browser 316 } // namespace browser
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698