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 <memory> | 7 #include <memory> |
8 #include <utility> | 8 #include <utility> |
9 | 9 |
10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 #include "components/tracing/common/tracing_switches.h" | 62 #include "components/tracing/common/tracing_switches.h" |
63 #include "content/public/browser/web_contents.h" | 63 #include "content/public/browser/web_contents.h" |
64 #include "extensions/features/features.h" | 64 #include "extensions/features/features.h" |
65 #include "printing/features/features.h" | 65 #include "printing/features/features.h" |
66 | 66 |
67 #if BUILDFLAG(ANDROID_JAVA_UI) | 67 #if BUILDFLAG(ANDROID_JAVA_UI) |
68 #include "chrome/browser/android/banners/app_banner_manager_android.h" | 68 #include "chrome/browser/android/banners/app_banner_manager_android.h" |
69 #include "chrome/browser/android/data_usage/data_use_tab_helper.h" | 69 #include "chrome/browser/android/data_usage/data_use_tab_helper.h" |
70 #include "chrome/browser/android/offline_pages/offline_page_tab_helper.h" | 70 #include "chrome/browser/android/offline_pages/offline_page_tab_helper.h" |
71 #include "chrome/browser/android/offline_pages/recent_tab_helper.h" | 71 #include "chrome/browser/android/offline_pages/recent_tab_helper.h" |
72 #include "chrome/browser/android/search_geolocation_disclosure_tab_helper.h" | 72 #include "chrome/browser/android/search_geolocation/search_geolocation_disclosur
e_tab_helper.h" |
73 #include "chrome/browser/android/voice_search_tab_helper.h" | 73 #include "chrome/browser/android/voice_search_tab_helper.h" |
74 #include "chrome/browser/android/webapps/single_tab_mode_tab_helper.h" | 74 #include "chrome/browser/android/webapps/single_tab_mode_tab_helper.h" |
75 #include "chrome/browser/ui/android/context_menu_helper.h" | 75 #include "chrome/browser/ui/android/context_menu_helper.h" |
76 #include "chrome/browser/ui/android/view_android_helper.h" | 76 #include "chrome/browser/ui/android/view_android_helper.h" |
77 #else | 77 #else |
78 #include "chrome/browser/banners/app_banner_manager_desktop.h" | 78 #include "chrome/browser/banners/app_banner_manager_desktop.h" |
79 #include "chrome/browser/plugins/plugin_observer.h" | 79 #include "chrome/browser/plugins/plugin_observer.h" |
80 #include "chrome/browser/safe_browsing/safe_browsing_navigation_observer.h" | 80 #include "chrome/browser/safe_browsing/safe_browsing_navigation_observer.h" |
81 #include "chrome/browser/safe_browsing/safe_browsing_tab_observer.h" | 81 #include "chrome/browser/safe_browsing/safe_browsing_tab_observer.h" |
82 #include "chrome/browser/thumbnails/thumbnail_tab_helper.h" | 82 #include "chrome/browser/thumbnails/thumbnail_tab_helper.h" |
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
276 | 276 |
277 if (predictors::ResourcePrefetchPredictorFactory::GetForProfile( | 277 if (predictors::ResourcePrefetchPredictorFactory::GetForProfile( |
278 web_contents->GetBrowserContext())) { | 278 web_contents->GetBrowserContext())) { |
279 predictors::ResourcePrefetchPredictorTabHelper::CreateForWebContents( | 279 predictors::ResourcePrefetchPredictorTabHelper::CreateForWebContents( |
280 web_contents); | 280 web_contents); |
281 } | 281 } |
282 | 282 |
283 if (tracing::NavigationTracingObserver::IsEnabled()) | 283 if (tracing::NavigationTracingObserver::IsEnabled()) |
284 tracing::NavigationTracingObserver::CreateForWebContents(web_contents); | 284 tracing::NavigationTracingObserver::CreateForWebContents(web_contents); |
285 } | 285 } |
OLD | NEW |