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

Side by Side Diff: chrome/browser/tab_contents/tab_contents_ssl_helper.cc

Issue 6598057: Split infobar_delegate.[cc,h] into separate pieces for the different classes defined within, so that (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix wrong include Created 9 years, 9 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/tab_contents/tab_contents_ssl_helper.h" 5 #include "chrome/browser/tab_contents/tab_contents_ssl_helper.h"
6 6
7 #include "base/basictypes.h" 7 #include "base/basictypes.h"
8 #include "base/string_number_conversions.h" 8 #include "base/string_number_conversions.h"
9 #include "base/utf_string_conversions.h" 9 #include "base/utf_string_conversions.h"
10 #include "chrome/browser/ssl/ssl_add_cert_handler.h" 10 #include "chrome/browser/ssl/ssl_add_cert_handler.h"
11 #include "chrome/browser/ssl/ssl_client_auth_handler.h" 11 #include "chrome/browser/ssl/ssl_client_auth_handler.h"
12 #include "chrome/browser/ssl_client_certificate_selector.h" 12 #include "chrome/browser/ssl_client_certificate_selector.h"
13 #include "chrome/browser/tab_contents/infobar_delegate.h" 13 #include "chrome/browser/tab_contents/confirm_infobar_delegate.h"
14 #include "chrome/browser/tab_contents/simple_alert_infobar_delegate.h"
14 #include "chrome/common/notification_details.h" 15 #include "chrome/common/notification_details.h"
15 #include "chrome/common/notification_source.h" 16 #include "chrome/common/notification_source.h"
16 #include "content/browser/certificate_viewer.h" 17 #include "content/browser/certificate_viewer.h"
17 #include "content/browser/tab_contents/tab_contents.h" 18 #include "content/browser/tab_contents/tab_contents.h"
18 #include "grit/generated_resources.h" 19 #include "grit/generated_resources.h"
19 #include "grit/theme_resources.h" 20 #include "grit/theme_resources.h"
20 #include "net/base/net_errors.h" 21 #include "net/base/net_errors.h"
21 #include "ui/base/l10n/l10n_util.h" 22 #include "ui/base/l10n/l10n_util.h"
22 #include "ui/base/resource/resource_bundle.h" 23 #include "ui/base/resource/resource_bundle.h"
23 24
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after
227 TabContentsSSLHelper::SSLAddCertData* TabContentsSSLHelper::GetAddCertData( 228 TabContentsSSLHelper::SSLAddCertData* TabContentsSSLHelper::GetAddCertData(
228 SSLAddCertHandler* handler) { 229 SSLAddCertHandler* handler) {
229 // Find/create the slot. 230 // Find/create the slot.
230 linked_ptr<SSLAddCertData>& ptr_ref = 231 linked_ptr<SSLAddCertData>& ptr_ref =
231 request_id_to_add_cert_data_[handler->network_request_id()]; 232 request_id_to_add_cert_data_[handler->network_request_id()];
232 // Fill it if necessary. 233 // Fill it if necessary.
233 if (!ptr_ref.get()) 234 if (!ptr_ref.get())
234 ptr_ref.reset(new SSLAddCertData(tab_contents_)); 235 ptr_ref.reset(new SSLAddCertData(tab_contents_));
235 return ptr_ref.get(); 236 return ptr_ref.get();
236 } 237 }
OLDNEW
« no previous file with comments | « chrome/browser/tab_contents/simple_alert_infobar_delegate.cc ('k') | chrome/browser/task_manager/task_manager_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698