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

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

Issue 2857063002: Add a way to send the resource percentage signal to the RC. (Closed)
Patch Set: CR Feedback per Dimich, BMcQuade, and CSHarrison Created 3 years, 7 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 <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 183 matching lines...) Expand 10 before | Expand all | Expand 10 after
194 Profile::FromBrowserContext( 194 Profile::FromBrowserContext(
195 web_contents->GetBrowserContext())).get()); 195 web_contents->GetBrowserContext())).get());
196 HistoryTabHelper::CreateForWebContents(web_contents); 196 HistoryTabHelper::CreateForWebContents(web_contents);
197 InfoBarService::CreateForWebContents(web_contents); 197 InfoBarService::CreateForWebContents(web_contents);
198 metrics::RendererUptimeWebContentsObserver::CreateForWebContents( 198 metrics::RendererUptimeWebContentsObserver::CreateForWebContents(
199 web_contents); 199 web_contents);
200 if (content::IsBrowserSideNavigationEnabled()) 200 if (content::IsBrowserSideNavigationEnabled())
201 MixedContentSettingsTabHelper::CreateForWebContents(web_contents); 201 MixedContentSettingsTabHelper::CreateForWebContents(web_contents);
202 NavigationCorrectionTabObserver::CreateForWebContents(web_contents); 202 NavigationCorrectionTabObserver::CreateForWebContents(web_contents);
203 NavigationMetricsRecorder::CreateForWebContents(web_contents); 203 NavigationMetricsRecorder::CreateForWebContents(web_contents);
204 chrome::InitializePageLoadMetricsForWebContents(web_contents); 204 chrome::InitializePageLoadMetricsForWebContents(web_contents,
205 false /* not background */);
205 PermissionRequestManager::CreateForWebContents(web_contents); 206 PermissionRequestManager::CreateForWebContents(web_contents);
206 PopupBlockerTabHelper::CreateForWebContents(web_contents); 207 PopupBlockerTabHelper::CreateForWebContents(web_contents);
207 PrefsTabHelper::CreateForWebContents(web_contents); 208 PrefsTabHelper::CreateForWebContents(web_contents);
208 prerender::PrerenderTabHelper::CreateForWebContents(web_contents); 209 prerender::PrerenderTabHelper::CreateForWebContents(web_contents);
209 PreviewsInfoBarTabHelper::CreateForWebContents(web_contents); 210 PreviewsInfoBarTabHelper::CreateForWebContents(web_contents);
210 SearchTabHelper::CreateForWebContents(web_contents); 211 SearchTabHelper::CreateForWebContents(web_contents);
211 SearchEngineTabHelper::CreateForWebContents(web_contents); 212 SearchEngineTabHelper::CreateForWebContents(web_contents);
212 SecurityStateTabHelper::CreateForWebContents(web_contents); 213 SecurityStateTabHelper::CreateForWebContents(web_contents);
213 if (SiteEngagementService::IsEnabled()) 214 if (SiteEngagementService::IsEnabled())
214 SiteEngagementService::Helper::CreateForWebContents(web_contents); 215 SiteEngagementService::Helper::CreateForWebContents(web_contents);
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
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);
316 } 317 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698