| 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 18 matching lines...) Expand all Loading... |
| 29 #include "chrome/browser/net/predictor_tab_helper.h" | 29 #include "chrome/browser/net/predictor_tab_helper.h" |
| 30 #include "chrome/browser/ntp_snippets/bookmark_last_visit_updater.h" | 30 #include "chrome/browser/ntp_snippets/bookmark_last_visit_updater.h" |
| 31 #include "chrome/browser/page_load_metrics/page_load_metrics_initialize.h" | 31 #include "chrome/browser/page_load_metrics/page_load_metrics_initialize.h" |
| 32 #include "chrome/browser/password_manager/chrome_password_manager_client.h" | 32 #include "chrome/browser/password_manager/chrome_password_manager_client.h" |
| 33 #include "chrome/browser/permissions/permission_request_manager.h" | 33 #include "chrome/browser/permissions/permission_request_manager.h" |
| 34 #include "chrome/browser/predictors/loading_predictor_factory.h" | 34 #include "chrome/browser/predictors/loading_predictor_factory.h" |
| 35 #include "chrome/browser/predictors/resource_prefetch_predictor_tab_helper.h" | 35 #include "chrome/browser/predictors/resource_prefetch_predictor_tab_helper.h" |
| 36 #include "chrome/browser/prerender/prerender_tab_helper.h" | 36 #include "chrome/browser/prerender/prerender_tab_helper.h" |
| 37 #include "chrome/browser/previews/previews_infobar_tab_helper.h" | 37 #include "chrome/browser/previews/previews_infobar_tab_helper.h" |
| 38 #include "chrome/browser/profiles/profile.h" | 38 #include "chrome/browser/profiles/profile.h" |
| 39 #include "chrome/browser/resource_coordinator/resource_coordinator_web_contents_
observer.h" |
| 39 #include "chrome/browser/sessions/session_tab_helper.h" | 40 #include "chrome/browser/sessions/session_tab_helper.h" |
| 40 #include "chrome/browser/ssl/security_state_tab_helper.h" | 41 #include "chrome/browser/ssl/security_state_tab_helper.h" |
| 41 #include "chrome/browser/subresource_filter/chrome_subresource_filter_client.h" | 42 #include "chrome/browser/subresource_filter/chrome_subresource_filter_client.h" |
| 42 #include "chrome/browser/sync/sessions/sync_sessions_router_tab_helper.h" | 43 #include "chrome/browser/sync/sessions/sync_sessions_router_tab_helper.h" |
| 43 #include "chrome/browser/sync/sessions/sync_sessions_web_contents_router_factory
.h" | 44 #include "chrome/browser/sync/sessions/sync_sessions_web_contents_router_factory
.h" |
| 44 #include "chrome/browser/tab_contents/navigation_metrics_recorder.h" | 45 #include "chrome/browser/tab_contents/navigation_metrics_recorder.h" |
| 45 #include "chrome/browser/tracing/navigation_tracing.h" | 46 #include "chrome/browser/tracing/navigation_tracing.h" |
| 46 #include "chrome/browser/translate/chrome_translate_client.h" | 47 #include "chrome/browser/translate/chrome_translate_client.h" |
| 47 #include "chrome/browser/ui/autofill/chrome_autofill_client.h" | 48 #include "chrome/browser/ui/autofill/chrome_autofill_client.h" |
| 48 #include "chrome/browser/ui/blocked_content/popup_blocker_tab_helper.h" | 49 #include "chrome/browser/ui/blocked_content/popup_blocker_tab_helper.h" |
| (...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 306 Profile::FromBrowserContext(web_contents->GetBrowserContext()))) { | 307 Profile::FromBrowserContext(web_contents->GetBrowserContext()))) { |
| 307 predictors::ResourcePrefetchPredictorTabHelper::CreateForWebContents( | 308 predictors::ResourcePrefetchPredictorTabHelper::CreateForWebContents( |
| 308 web_contents); | 309 web_contents); |
| 309 } | 310 } |
| 310 | 311 |
| 311 if (tracing::NavigationTracingObserver::IsEnabled()) | 312 if (tracing::NavigationTracingObserver::IsEnabled()) |
| 312 tracing::NavigationTracingObserver::CreateForWebContents(web_contents); | 313 tracing::NavigationTracingObserver::CreateForWebContents(web_contents); |
| 313 | 314 |
| 314 if (MediaEngagementService::IsEnabled()) | 315 if (MediaEngagementService::IsEnabled()) |
| 315 MediaEngagementService::CreateWebContentsObserver(web_contents); | 316 MediaEngagementService::CreateWebContentsObserver(web_contents); |
| 317 |
| 318 if (ResourceCoordinatorWebContentsObserver::IsEnabled()) |
| 319 ResourceCoordinatorWebContentsObserver::CreateForWebContents(web_contents); |
| 316 } | 320 } |
| OLD | NEW |