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

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

Issue 646973002: Introduce ChromeContentSettingsClient (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: TODO added + typo fixed Created 6 years, 2 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/tab_specific_content_settings.h" 10 #include "chrome/browser/content_settings/tab_specific_content_settings.h"
10 #include "chrome/browser/favicon/favicon_tab_helper.h" 11 #include "chrome/browser/favicon/favicon_tab_helper.h"
11 #include "chrome/browser/history/history_tab_helper.h" 12 #include "chrome/browser/history/history_tab_helper.h"
12 #include "chrome/browser/infobars/infobar_service.h" 13 #include "chrome/browser/infobars/infobar_service.h"
13 #include "chrome/browser/net/net_error_tab_helper.h" 14 #include "chrome/browser/net/net_error_tab_helper.h"
14 #include "chrome/browser/password_manager/chrome_password_manager_client.h" 15 #include "chrome/browser/password_manager/chrome_password_manager_client.h"
15 #include "chrome/browser/predictors/resource_prefetch_predictor_factory.h" 16 #include "chrome/browser/predictors/resource_prefetch_predictor_factory.h"
16 #include "chrome/browser/predictors/resource_prefetch_predictor_tab_helper.h" 17 #include "chrome/browser/predictors/resource_prefetch_predictor_tab_helper.h"
17 #include "chrome/browser/prerender/prerender_tab_helper.h" 18 #include "chrome/browser/prerender/prerender_tab_helper.h"
18 #include "chrome/browser/sessions/session_tab_helper.h" 19 #include "chrome/browser/sessions/session_tab_helper.h"
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 HistoryTabHelper::CreateForWebContents(web_contents); 144 HistoryTabHelper::CreateForWebContents(web_contents);
144 InfoBarService::CreateForWebContents(web_contents); 145 InfoBarService::CreateForWebContents(web_contents);
145 NavigationCorrectionTabObserver::CreateForWebContents(web_contents); 146 NavigationCorrectionTabObserver::CreateForWebContents(web_contents);
146 NavigationMetricsRecorder::CreateForWebContents(web_contents); 147 NavigationMetricsRecorder::CreateForWebContents(web_contents);
147 PopupBlockerTabHelper::CreateForWebContents(web_contents); 148 PopupBlockerTabHelper::CreateForWebContents(web_contents);
148 PrefsTabHelper::CreateForWebContents(web_contents); 149 PrefsTabHelper::CreateForWebContents(web_contents);
149 prerender::PrerenderTabHelper::CreateForWebContentsWithPasswordManager( 150 prerender::PrerenderTabHelper::CreateForWebContentsWithPasswordManager(
150 web_contents, 151 web_contents,
151 ChromePasswordManagerClient::GetManagerFromWebContents(web_contents)); 152 ChromePasswordManagerClient::GetManagerFromWebContents(web_contents));
152 SearchTabHelper::CreateForWebContents(web_contents); 153 SearchTabHelper::CreateForWebContents(web_contents);
154 // TODO(vabr): Remove TabSpecificContentSettings from here once their function
155 // is taken over by ChromeContentSettingsClient. http://crbug.com/387075
153 TabSpecificContentSettings::CreateForWebContents(web_contents); 156 TabSpecificContentSettings::CreateForWebContents(web_contents);
157 ChromeContentSettingsClient::CreateForWebContents(web_contents);
154 ChromeTranslateClient::CreateForWebContents(web_contents); 158 ChromeTranslateClient::CreateForWebContents(web_contents);
155 159
156 // --- Platform-specific tab helpers --- 160 // --- Platform-specific tab helpers ---
157 161
158 #if defined(OS_ANDROID) 162 #if defined(OS_ANDROID)
159 ContextMenuHelper::CreateForWebContents(web_contents); 163 ContextMenuHelper::CreateForWebContents(web_contents);
160 SingleTabModeTabHelper::CreateForWebContents(web_contents); 164 SingleTabModeTabHelper::CreateForWebContents(web_contents);
161 WindowAndroidHelper::CreateForWebContents(web_contents); 165 WindowAndroidHelper::CreateForWebContents(web_contents);
162 #else 166 #else
163 chrome_browser_net::PredictorTabHelper::CreateForWebContents(web_contents); 167 chrome_browser_net::PredictorTabHelper::CreateForWebContents(web_contents);
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
229 ChromePasswordManagerClient::GetManagerFromWebContents(web_contents)); 233 ChromePasswordManagerClient::GetManagerFromWebContents(web_contents));
230 } 234 }
231 #endif 235 #endif
232 236
233 if (predictors::ResourcePrefetchPredictorFactory::GetForProfile( 237 if (predictors::ResourcePrefetchPredictorFactory::GetForProfile(
234 web_contents->GetBrowserContext())) { 238 web_contents->GetBrowserContext())) {
235 predictors::ResourcePrefetchPredictorTabHelper::CreateForWebContents( 239 predictors::ResourcePrefetchPredictorTabHelper::CreateForWebContents(
236 web_contents); 240 web_contents);
237 } 241 }
238 } 242 }
OLDNEW
« no previous file with comments | « chrome/browser/content_settings/chrome_content_settings_client.cc ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698