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

Side by Side Diff: chrome/browser/ui/gtk/ssl_client_certificate_selector.cc

Issue 10916348: Switch SSLTabHelper to use WebContentsUserData. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 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
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 #include "chrome/browser/ssl_client_certificate_selector.h" 5 #include "chrome/browser/ssl/ssl_client_certificate_selector.h"
6 6
7 #include <gtk/gtk.h> 7 #include <gtk/gtk.h>
8 8
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
11 11
12 #include "base/bind.h" 12 #include "base/bind.h"
13 #include "base/i18n/time_formatting.h" 13 #include "base/i18n/time_formatting.h"
14 #include "base/logging.h" 14 #include "base/logging.h"
15 #include "base/utf_string_conversions.h" 15 #include "base/utf_string_conversions.h"
(...skipping 363 matching lines...) Expand 10 before | Expand all | Expand 10 after
379 return; 379 return;
380 gtk_widget_set_can_default(select_button_, TRUE); 380 gtk_widget_set_can_default(select_button_, TRUE);
381 gtk_widget_grab_default(select_button_); 381 gtk_widget_grab_default(select_button_);
382 } 382 }
383 383
384 } // namespace 384 } // namespace
385 385
386 namespace chrome { 386 namespace chrome {
387 387
388 void ShowSSLClientCertificateSelector( 388 void ShowSSLClientCertificateSelector(
389 TabContents* tab_contents, 389 content::WebContents* contents,
390 const net::HttpNetworkSession* network_session, 390 const net::HttpNetworkSession* network_session,
391 net::SSLCertRequestInfo* cert_request_info, 391 net::SSLCertRequestInfo* cert_request_info,
392 const base::Callback<void(net::X509Certificate*)>& callback) { 392 const base::Callback<void(net::X509Certificate*)>& callback) {
393 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); 393 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
394 TabContents* tab_contents = TabContents::FromWebContents(contents);
394 (new SSLClientCertificateSelector( 395 (new SSLClientCertificateSelector(
395 tab_contents, network_session, cert_request_info, callback))->Show(); 396 tab_contents, network_session, cert_request_info, callback))->Show();
396 } 397 }
397 398
398 } // namespace chrome 399 } // namespace chrome
OLDNEW
« no previous file with comments | « chrome/browser/ui/cocoa/ssl_client_certificate_selector.mm ('k') | chrome/browser/ui/tab_contents/tab_contents.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698