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

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

Issue 1157253009: Organize the tab helper file. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 6 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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"
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 autofill::AutofillManager::ENABLE_AUTOFILL_DOWNLOAD_MANAGER); 140 autofill::AutofillManager::ENABLE_AUTOFILL_DOWNLOAD_MANAGER);
141 BookmarkTabHelper::CreateForWebContents(web_contents); 141 BookmarkTabHelper::CreateForWebContents(web_contents);
142 chrome_browser_net::NetErrorTabHelper::CreateForWebContents(web_contents); 142 chrome_browser_net::NetErrorTabHelper::CreateForWebContents(web_contents);
143 chrome_browser_net::PredictorTabHelper::CreateForWebContents(web_contents); 143 chrome_browser_net::PredictorTabHelper::CreateForWebContents(web_contents);
144 ChromeContentSettingsClient::CreateForWebContents(web_contents); 144 ChromeContentSettingsClient::CreateForWebContents(web_contents);
145 ChromePasswordManagerClient::CreateForWebContentsWithAutofillClient( 145 ChromePasswordManagerClient::CreateForWebContentsWithAutofillClient(
146 web_contents, 146 web_contents,
147 autofill::ChromeAutofillClient::FromWebContents(web_contents)); 147 autofill::ChromeAutofillClient::FromWebContents(web_contents));
148 ChromeTranslateClient::CreateForWebContents(web_contents); 148 ChromeTranslateClient::CreateForWebContents(web_contents);
149 CoreTabHelper::CreateForWebContents(web_contents); 149 CoreTabHelper::CreateForWebContents(web_contents);
150 ExternalProtocolObserver::CreateForWebContents(web_contents);
150 favicon::CreateContentFaviconDriverForWebContents(web_contents); 151 favicon::CreateContentFaviconDriverForWebContents(web_contents);
151 FindTabHelper::CreateForWebContents(web_contents); 152 FindTabHelper::CreateForWebContents(web_contents);
152 history::WebContentsTopSitesObserver::CreateForWebContents( 153 history::WebContentsTopSitesObserver::CreateForWebContents(
153 web_contents, TopSitesFactory::GetForProfile( 154 web_contents, TopSitesFactory::GetForProfile(
154 Profile::FromBrowserContext( 155 Profile::FromBrowserContext(
155 web_contents->GetBrowserContext())).get()); 156 web_contents->GetBrowserContext())).get());
156 HistoryTabHelper::CreateForWebContents(web_contents); 157 HistoryTabHelper::CreateForWebContents(web_contents);
157 InfoBarService::CreateForWebContents(web_contents); 158 InfoBarService::CreateForWebContents(web_contents);
158 ManagePasswordsUIController::CreateForWebContents(web_contents); 159 ManagePasswordsUIController::CreateForWebContents(web_contents);
159 NavigationCorrectionTabObserver::CreateForWebContents(web_contents); 160 NavigationCorrectionTabObserver::CreateForWebContents(web_contents);
(...skipping 28 matching lines...) Expand all
188 PermissionBubbleManager::CreateForWebContents(web_contents); 189 PermissionBubbleManager::CreateForWebContents(web_contents);
189 PluginObserver::CreateForWebContents(web_contents); 190 PluginObserver::CreateForWebContents(web_contents);
190 SadTabHelper::CreateForWebContents(web_contents); 191 SadTabHelper::CreateForWebContents(web_contents);
191 safe_browsing::SafeBrowsingTabObserver::CreateForWebContents(web_contents); 192 safe_browsing::SafeBrowsingTabObserver::CreateForWebContents(web_contents);
192 SearchEngineTabHelper::CreateForWebContents(web_contents); 193 SearchEngineTabHelper::CreateForWebContents(web_contents);
193 TabContentsSyncedTabDelegate::CreateForWebContents(web_contents); 194 TabContentsSyncedTabDelegate::CreateForWebContents(web_contents);
194 TabDialogs::CreateForWebContents(web_contents); 195 TabDialogs::CreateForWebContents(web_contents);
195 ThumbnailTabHelper::CreateForWebContents(web_contents); 196 ThumbnailTabHelper::CreateForWebContents(web_contents);
196 web_modal::WebContentsModalDialogManager::CreateForWebContents(web_contents); 197 web_modal::WebContentsModalDialogManager::CreateForWebContents(web_contents);
197 #endif 198 #endif
198 ExternalProtocolObserver::CreateForWebContents(web_contents);
199 199
200 #if defined(OS_WIN) 200 #if defined(OS_WIN)
201 MetroPinTabHelper::CreateForWebContents(web_contents); 201 MetroPinTabHelper::CreateForWebContents(web_contents);
202 #endif 202 #endif
203 203
204 // --- Feature tab helpers behind flags --- 204 // --- Feature tab helpers behind flags ---
205 205
206 #if defined(ENABLE_CAPTIVE_PORTAL_DETECTION) 206 #if defined(ENABLE_CAPTIVE_PORTAL_DETECTION)
207 CaptivePortalTabHelper::CreateForWebContents(web_contents); 207 CaptivePortalTabHelper::CreateForWebContents(web_contents);
208 #endif 208 #endif
(...skipping 20 matching lines...) Expand all
229 dom_distiller::WebContentsMainFrameObserver::CreateForWebContents( 229 dom_distiller::WebContentsMainFrameObserver::CreateForWebContents(
230 web_contents); 230 web_contents);
231 } 231 }
232 232
233 if (predictors::ResourcePrefetchPredictorFactory::GetForProfile( 233 if (predictors::ResourcePrefetchPredictorFactory::GetForProfile(
234 web_contents->GetBrowserContext())) { 234 web_contents->GetBrowserContext())) {
235 predictors::ResourcePrefetchPredictorTabHelper::CreateForWebContents( 235 predictors::ResourcePrefetchPredictorTabHelper::CreateForWebContents(
236 web_contents); 236 web_contents);
237 } 237 }
238 } 238 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698