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

Side by Side Diff: chrome/browser/ui/tab_helpers.cc

Issue 1314843007: Refactor connection_security into SecurityStateModel (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: create SecurityStateModel for chromeos login webview Created 5 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/tab_helpers.h" 5 #include "chrome/browser/ui/tab_helpers.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "chrome/browser/browser_process.h" 8 #include "chrome/browser/browser_process.h"
9 #include "chrome/browser/content_settings/chrome_content_settings_client.h" 9 #include "chrome/browser/content_settings/chrome_content_settings_client.h"
10 #include "chrome/browser/content_settings/tab_specific_content_settings.h" 10 #include "chrome/browser/content_settings/tab_specific_content_settings.h"
11 #include "chrome/browser/engagement/site_engagement_helper.h" 11 #include "chrome/browser/engagement/site_engagement_helper.h"
12 #include "chrome/browser/engagement/site_engagement_service.h" 12 #include "chrome/browser/engagement/site_engagement_service.h"
13 #include "chrome/browser/external_protocol/external_protocol_observer.h" 13 #include "chrome/browser/external_protocol/external_protocol_observer.h"
14 #include "chrome/browser/favicon/favicon_utils.h" 14 #include "chrome/browser/favicon/favicon_utils.h"
15 #include "chrome/browser/history/history_tab_helper.h" 15 #include "chrome/browser/history/history_tab_helper.h"
16 #include "chrome/browser/history/top_sites_factory.h" 16 #include "chrome/browser/history/top_sites_factory.h"
17 #include "chrome/browser/infobars/infobar_service.h" 17 #include "chrome/browser/infobars/infobar_service.h"
18 #include "chrome/browser/net/net_error_tab_helper.h" 18 #include "chrome/browser/net/net_error_tab_helper.h"
19 #include "chrome/browser/net/predictor_tab_helper.h" 19 #include "chrome/browser/net/predictor_tab_helper.h"
20 #include "chrome/browser/password_manager/chrome_password_manager_client.h" 20 #include "chrome/browser/password_manager/chrome_password_manager_client.h"
21 #include "chrome/browser/predictors/resource_prefetch_predictor_factory.h" 21 #include "chrome/browser/predictors/resource_prefetch_predictor_factory.h"
22 #include "chrome/browser/predictors/resource_prefetch_predictor_tab_helper.h" 22 #include "chrome/browser/predictors/resource_prefetch_predictor_tab_helper.h"
23 #include "chrome/browser/prerender/prerender_tab_helper.h" 23 #include "chrome/browser/prerender/prerender_tab_helper.h"
24 #include "chrome/browser/profiles/profile.h" 24 #include "chrome/browser/profiles/profile.h"
25 #include "chrome/browser/sessions/session_tab_helper.h" 25 #include "chrome/browser/sessions/session_tab_helper.h"
26 #include "chrome/browser/ssl/security_state_model.h"
26 #include "chrome/browser/tab_contents/navigation_metrics_recorder.h" 27 #include "chrome/browser/tab_contents/navigation_metrics_recorder.h"
27 #include "chrome/browser/tracing/navigation_tracing.h" 28 #include "chrome/browser/tracing/navigation_tracing.h"
28 #include "chrome/browser/translate/chrome_translate_client.h" 29 #include "chrome/browser/translate/chrome_translate_client.h"
29 #include "chrome/browser/ui/autofill/chrome_autofill_client.h" 30 #include "chrome/browser/ui/autofill/chrome_autofill_client.h"
30 #include "chrome/browser/ui/blocked_content/popup_blocker_tab_helper.h" 31 #include "chrome/browser/ui/blocked_content/popup_blocker_tab_helper.h"
31 #include "chrome/browser/ui/bookmarks/bookmark_tab_helper.h" 32 #include "chrome/browser/ui/bookmarks/bookmark_tab_helper.h"
32 #include "chrome/browser/ui/find_bar/find_tab_helper.h" 33 #include "chrome/browser/ui/find_bar/find_tab_helper.h"
33 #include "chrome/browser/ui/navigation_correction_tab_observer.h" 34 #include "chrome/browser/ui/navigation_correction_tab_observer.h"
34 #include "chrome/browser/ui/passwords/manage_passwords_ui_controller.h" 35 #include "chrome/browser/ui/passwords/manage_passwords_ui_controller.h"
35 #include "chrome/browser/ui/pdf/chrome_pdf_web_contents_helper_client.h" 36 #include "chrome/browser/ui/pdf/chrome_pdf_web_contents_helper_client.h"
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 web_contents->GetBrowserContext())).get()); 161 web_contents->GetBrowserContext())).get());
161 HistoryTabHelper::CreateForWebContents(web_contents); 162 HistoryTabHelper::CreateForWebContents(web_contents);
162 InfoBarService::CreateForWebContents(web_contents); 163 InfoBarService::CreateForWebContents(web_contents);
163 ManagePasswordsUIController::CreateForWebContents(web_contents); 164 ManagePasswordsUIController::CreateForWebContents(web_contents);
164 NavigationCorrectionTabObserver::CreateForWebContents(web_contents); 165 NavigationCorrectionTabObserver::CreateForWebContents(web_contents);
165 NavigationMetricsRecorder::CreateForWebContents(web_contents); 166 NavigationMetricsRecorder::CreateForWebContents(web_contents);
166 PopupBlockerTabHelper::CreateForWebContents(web_contents); 167 PopupBlockerTabHelper::CreateForWebContents(web_contents);
167 PrefsTabHelper::CreateForWebContents(web_contents); 168 PrefsTabHelper::CreateForWebContents(web_contents);
168 prerender::PrerenderTabHelper::CreateForWebContents(web_contents); 169 prerender::PrerenderTabHelper::CreateForWebContents(web_contents);
169 SearchTabHelper::CreateForWebContents(web_contents); 170 SearchTabHelper::CreateForWebContents(web_contents);
171 SecurityStateModel::CreateForWebContents(web_contents);
170 if (SiteEngagementService::IsEnabled()) 172 if (SiteEngagementService::IsEnabled())
171 SiteEngagementHelper::CreateForWebContents(web_contents); 173 SiteEngagementHelper::CreateForWebContents(web_contents);
172 // TODO(vabr): Remove TabSpecificContentSettings from here once their function 174 // TODO(vabr): Remove TabSpecificContentSettings from here once their function
173 // is taken over by ChromeContentSettingsClient. http://crbug.com/387075 175 // is taken over by ChromeContentSettingsClient. http://crbug.com/387075
174 TabSpecificContentSettings::CreateForWebContents(web_contents); 176 TabSpecificContentSettings::CreateForWebContents(web_contents);
175 177
176 // --- Platform-specific tab helpers --- 178 // --- Platform-specific tab helpers ---
177 179
178 #if defined(OS_ANDROID) 180 #if defined(OS_ANDROID)
179 ContextMenuHelper::CreateForWebContents(web_contents); 181 ContextMenuHelper::CreateForWebContents(web_contents);
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
245 web_contents); 247 web_contents);
246 } 248 }
247 249
248 if (base::CommandLine::ForCurrentProcess()->HasSwitch( 250 if (base::CommandLine::ForCurrentProcess()->HasSwitch(
249 switches::kEnableNavigationTracing) && 251 switches::kEnableNavigationTracing) &&
250 base::CommandLine::ForCurrentProcess()->HasSwitch( 252 base::CommandLine::ForCurrentProcess()->HasSwitch(
251 switches::kTraceUploadURL)) { 253 switches::kTraceUploadURL)) {
252 tracing::NavigationTracingObserver::CreateForWebContents(web_contents); 254 tracing::NavigationTracingObserver::CreateForWebContents(web_contents);
253 } 255 }
254 } 256 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/extensions/hosted_app_browser_controller.cc ('k') | chrome/browser/ui/toolbar/chrome_toolbar_model.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698