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

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

Issue 2823038: Refactor SSLClientAuthHandler and certificate selection (Closed)
Patch Set: Rebase the patch Created 10 years, 5 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
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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.h" 5 #include "chrome/browser/tab_contents/tab_contents.h"
6 6
7 #if defined(OS_CHROMEOS) 7 #if defined(OS_CHROMEOS)
8 // For GdkScreen 8 // For GdkScreen
9 #include <gdk/gdk.h> 9 #include <gdk/gdk.h>
10 #endif // defined(OS_CHROMEOS) 10 #endif // defined(OS_CHROMEOS)
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 #include "chrome/browser/renderer_host/web_cache_manager.h" 63 #include "chrome/browser/renderer_host/web_cache_manager.h"
64 #include "chrome/browser/renderer_preferences_util.h" 64 #include "chrome/browser/renderer_preferences_util.h"
65 #include "chrome/browser/search_engines/template_url_fetcher.h" 65 #include "chrome/browser/search_engines/template_url_fetcher.h"
66 #include "chrome/browser/search_engines/template_url_model.h" 66 #include "chrome/browser/search_engines/template_url_model.h"
67 #include "chrome/browser/sessions/session_types.h" 67 #include "chrome/browser/sessions/session_types.h"
68 #include "chrome/browser/tab_contents/infobar_delegate.h" 68 #include "chrome/browser/tab_contents/infobar_delegate.h"
69 #include "chrome/browser/tab_contents/interstitial_page.h" 69 #include "chrome/browser/tab_contents/interstitial_page.h"
70 #include "chrome/browser/tab_contents/navigation_entry.h" 70 #include "chrome/browser/tab_contents/navigation_entry.h"
71 #include "chrome/browser/tab_contents/provisional_load_details.h" 71 #include "chrome/browser/tab_contents/provisional_load_details.h"
72 #include "chrome/browser/tab_contents/tab_contents_delegate.h" 72 #include "chrome/browser/tab_contents/tab_contents_delegate.h"
73 #include "chrome/browser/tab_contents/tab_contents_ssl_helper.h"
73 #include "chrome/browser/tab_contents/tab_contents_view.h" 74 #include "chrome/browser/tab_contents/tab_contents_view.h"
74 #include "chrome/browser/tab_contents/thumbnail_generator.h" 75 #include "chrome/browser/tab_contents/thumbnail_generator.h"
75 #include "chrome/browser/translate/page_translated_details.h" 76 #include "chrome/browser/translate/page_translated_details.h"
76 #include "chrome/common/bindings_policy.h" 77 #include "chrome/common/bindings_policy.h"
77 #include "chrome/common/chrome_switches.h" 78 #include "chrome/common/chrome_switches.h"
78 #include "chrome/common/extensions/extension.h" 79 #include "chrome/common/extensions/extension.h"
79 #include "chrome/common/extensions/extension_action.h" 80 #include "chrome/common/extensions/extension_action.h"
80 #include "chrome/common/extensions/extension_resource.h" 81 #include "chrome/common/extensions/extension_resource.h"
81 #include "chrome/common/extensions/url_pattern.h" 82 #include "chrome/common/extensions/url_pattern.h"
82 #include "chrome/common/navigation_types.h" 83 #include "chrome/common/navigation_types.h"
(...skipping 410 matching lines...) Expand 10 before | Expand all | Expand 10 after
493 password_manager_.reset(new PasswordManager(this)); 494 password_manager_.reset(new PasswordManager(this));
494 return password_manager_.get(); 495 return password_manager_.get();
495 } 496 }
496 497
497 PluginInstaller* TabContents::GetPluginInstaller() { 498 PluginInstaller* TabContents::GetPluginInstaller() {
498 if (plugin_installer_.get() == NULL) 499 if (plugin_installer_.get() == NULL)
499 plugin_installer_.reset(new PluginInstaller(this)); 500 plugin_installer_.reset(new PluginInstaller(this));
500 return plugin_installer_.get(); 501 return plugin_installer_.get();
501 } 502 }
502 503
504 TabContentsSSLHelper* TabContents::GetSSLHelper() {
505 if (ssl_helper_.get() == NULL)
506 ssl_helper_.reset(new TabContentsSSLHelper(this));
507 return ssl_helper_.get();
508 }
509
503 RenderProcessHost* TabContents::GetRenderProcessHost() const { 510 RenderProcessHost* TabContents::GetRenderProcessHost() const {
504 return render_manager_.current_host()->process(); 511 return render_manager_.current_host()->process();
505 } 512 }
506 513
507 void TabContents::SetExtensionApp(Extension* extension) { 514 void TabContents::SetExtensionApp(Extension* extension) {
508 DCHECK(!extension || extension->GetFullLaunchURL().is_valid()); 515 DCHECK(!extension || extension->GetFullLaunchURL().is_valid());
509 extension_app_ = extension; 516 extension_app_ = extension;
510 517
511 UpdateExtensionAppIcon(extension_app_); 518 UpdateExtensionAppIcon(extension_app_);
512 519
(...skipping 1652 matching lines...) Expand 10 before | Expand all | Expand 10 after
2165 RenderViewHostDelegate::Autocomplete* TabContents::GetAutocompleteDelegate() { 2172 RenderViewHostDelegate::Autocomplete* TabContents::GetAutocompleteDelegate() {
2166 if (autocomplete_history_manager_.get() == NULL) 2173 if (autocomplete_history_manager_.get() == NULL)
2167 autocomplete_history_manager_.reset(new AutocompleteHistoryManager(this)); 2174 autocomplete_history_manager_.reset(new AutocompleteHistoryManager(this));
2168 return autocomplete_history_manager_.get(); 2175 return autocomplete_history_manager_.get();
2169 } 2176 }
2170 2177
2171 RenderViewHostDelegate::AutoFill* TabContents::GetAutoFillDelegate() { 2178 RenderViewHostDelegate::AutoFill* TabContents::GetAutoFillDelegate() {
2172 return GetAutoFillManager(); 2179 return GetAutoFillManager();
2173 } 2180 }
2174 2181
2182 RenderViewHostDelegate::SSL* TabContents::GetSSLDelegate() {
2183 return GetSSLHelper();
2184 }
2185
2175 AutomationResourceRoutingDelegate* 2186 AutomationResourceRoutingDelegate*
2176 TabContents::GetAutomationResourceRoutingDelegate() { 2187 TabContents::GetAutomationResourceRoutingDelegate() {
2177 return delegate(); 2188 return delegate();
2178 } 2189 }
2179 2190
2180 RenderViewHostDelegate::BookmarkDrag* TabContents::GetBookmarkDragDelegate() { 2191 RenderViewHostDelegate::BookmarkDrag* TabContents::GetBookmarkDragDelegate() {
2181 return bookmark_drag_; 2192 return bookmark_drag_;
2182 } 2193 }
2183 2194
2184 void TabContents::SetBookmarkDragDelegate( 2195 void TabContents::SetBookmarkDragDelegate(
(...skipping 973 matching lines...) Expand 10 before | Expand all | Expand 10 after
3158 AddInfoBar(new SavePasswordInfoBarDelegate(this, form_to_save)); 3169 AddInfoBar(new SavePasswordInfoBarDelegate(this, form_to_save));
3159 } 3170 }
3160 3171
3161 Profile* TabContents::GetProfileForPasswordManager() { 3172 Profile* TabContents::GetProfileForPasswordManager() {
3162 return profile(); 3173 return profile();
3163 } 3174 }
3164 3175
3165 bool TabContents::DidLastPageLoadEncounterSSLErrors() { 3176 bool TabContents::DidLastPageLoadEncounterSSLErrors() {
3166 return controller().ssl_manager()->ProcessedSSLErrorFromRequest(); 3177 return controller().ssl_manager()->ProcessedSSLErrorFromRequest();
3167 } 3178 }
OLDNEW
« no previous file with comments | « chrome/browser/tab_contents/tab_contents.h ('k') | chrome/browser/tab_contents/tab_contents_ssl_helper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698