OLD | NEW |
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/tab_specific_content_settings.h" | 9 #include "chrome/browser/content_settings/tab_specific_content_settings.h" |
10 #include "chrome/browser/favicon/favicon_tab_helper.h" | 10 #include "chrome/browser/favicon/favicon_tab_helper.h" |
11 #include "chrome/browser/history/history_tab_helper.h" | 11 #include "chrome/browser/history/history_tab_helper.h" |
12 #include "chrome/browser/infobars/infobar_service.h" | 12 #include "chrome/browser/infobars/infobar_service.h" |
13 #include "chrome/browser/net/net_error_tab_helper.h" | 13 #include "chrome/browser/net/net_error_tab_helper.h" |
14 #include "chrome/browser/password_manager/chrome_password_manager_client.h" | 14 #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_tab_helper.h" |
15 #include "chrome/browser/prerender/prerender_tab_helper.h" | 17 #include "chrome/browser/prerender/prerender_tab_helper.h" |
16 #include "chrome/browser/sessions/session_tab_helper.h" | 18 #include "chrome/browser/sessions/session_tab_helper.h" |
17 #include "chrome/browser/tab_contents/navigation_metrics_recorder.h" | 19 #include "chrome/browser/tab_contents/navigation_metrics_recorder.h" |
18 #include "chrome/browser/translate/chrome_translate_client.h" | 20 #include "chrome/browser/translate/chrome_translate_client.h" |
19 #include "chrome/browser/ui/autofill/chrome_autofill_client.h" | 21 #include "chrome/browser/ui/autofill/chrome_autofill_client.h" |
20 #include "chrome/browser/ui/blocked_content/popup_blocker_tab_helper.h" | 22 #include "chrome/browser/ui/blocked_content/popup_blocker_tab_helper.h" |
21 #include "chrome/browser/ui/bookmarks/bookmark_tab_helper.h" | 23 #include "chrome/browser/ui/bookmarks/bookmark_tab_helper.h" |
22 #include "chrome/browser/ui/find_bar/find_tab_helper.h" | 24 #include "chrome/browser/ui/find_bar/find_tab_helper.h" |
23 #include "chrome/browser/ui/navigation_correction_tab_observer.h" | 25 #include "chrome/browser/ui/navigation_correction_tab_observer.h" |
24 #include "chrome/browser/ui/pdf/chrome_pdf_web_contents_helper_client.h" | 26 #include "chrome/browser/ui/pdf/chrome_pdf_web_contents_helper_client.h" |
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
220 // happens to be already connected. | 222 // happens to be already connected. |
221 if (OneClickSigninHelper::CanOffer(web_contents, | 223 if (OneClickSigninHelper::CanOffer(web_contents, |
222 OneClickSigninHelper::CAN_OFFER_FOR_ALL, | 224 OneClickSigninHelper::CAN_OFFER_FOR_ALL, |
223 std::string(), | 225 std::string(), |
224 NULL)) { | 226 NULL)) { |
225 OneClickSigninHelper::CreateForWebContentsWithPasswordManager( | 227 OneClickSigninHelper::CreateForWebContentsWithPasswordManager( |
226 web_contents, | 228 web_contents, |
227 ChromePasswordManagerClient::GetManagerFromWebContents(web_contents)); | 229 ChromePasswordManagerClient::GetManagerFromWebContents(web_contents)); |
228 } | 230 } |
229 #endif | 231 #endif |
| 232 |
| 233 if (predictors::ResourcePrefetchPredictorFactory::GetForProfile( |
| 234 web_contents->GetBrowserContext())) { |
| 235 predictors::ResourcePrefetchPredictorTabHelper::CreateForWebContents( |
| 236 web_contents); |
| 237 } |
230 } | 238 } |
OLD | NEW |