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

Side by Side Diff: chrome/renderer/chrome_content_renderer_client.cc

Issue 2859723004: [Blink-Scheduler] Distinguish between normal and foreground-only renderers for monitoring load. (Closed)
Patch Set: --- 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/renderer/chrome_content_renderer_client.h" 5 #include "chrome/renderer/chrome_content_renderer_client.h"
6 6
7 #include <memory> 7 #include <memory>
8 #include <utility> 8 #include <utility>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 1560 matching lines...) Expand 10 before | Expand all | Expand 10 after
1571 1571
1572 RecordYouTubeRewriteUMA(result); 1572 RecordYouTubeRewriteUMA(result);
1573 return corrected_url.ReplaceComponents(r); 1573 return corrected_url.ReplaceComponents(r);
1574 } 1574 }
1575 1575
1576 std::unique_ptr<base::TaskScheduler::InitParams> 1576 std::unique_ptr<base::TaskScheduler::InitParams>
1577 ChromeContentRendererClient::GetTaskSchedulerInitParams() { 1577 ChromeContentRendererClient::GetTaskSchedulerInitParams() {
1578 return task_scheduler_util:: 1578 return task_scheduler_util::
1579 GetRendererTaskSchedulerInitParamsFromCommandLine(); 1579 GetRendererTaskSchedulerInitParamsFromCommandLine();
1580 } 1580 }
1581
1582 bool ChromeContentRendererClient::CanBeBackgrounded() const {
1583 #if BUILDFLAG(ENABLE_EXTENSIONS)
1584 return !IsStandaloneExtensionProcess();
1585 #else
1586 return true;
1587 #endif
1588 }
OLDNEW
« no previous file with comments | « chrome/renderer/chrome_content_renderer_client.h ('k') | content/public/renderer/content_renderer_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698