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

Side by Side Diff: content/public/renderer/content_renderer_client.h

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 #ifndef CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ 5 #ifndef CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_
6 #define CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ 6 #define CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 344 matching lines...) Expand 10 before | Expand all | Expand 10 after
355 // An empty URL is returned if the URL is not overriden. 355 // An empty URL is returned if the URL is not overriden.
356 virtual GURL OverrideFlashEmbedWithHTML(const GURL& url); 356 virtual GURL OverrideFlashEmbedWithHTML(const GURL& url);
357 357
358 // Provides parameters for initializing the global task scheduler. Default 358 // Provides parameters for initializing the global task scheduler. Default
359 // params are used if this returns nullptr. 359 // params are used if this returns nullptr.
360 virtual std::unique_ptr<base::TaskScheduler::InitParams> 360 virtual std::unique_ptr<base::TaskScheduler::InitParams>
361 GetTaskSchedulerInitParams(); 361 GetTaskSchedulerInitParams();
362 362
363 // Returns true if the media pipeline can be suspended, or false otherwise. 363 // Returns true if the media pipeline can be suspended, or false otherwise.
364 virtual bool AllowMediaSuspend(); 364 virtual bool AllowMediaSuspend();
365
366 // Returns true if this renderer can be backgrounded.
367 virtual bool CanBeBackgrounded() const;
365 }; 368 };
366 369
367 } // namespace content 370 } // namespace content
368 371
369 #endif // CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ 372 #endif // CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_
OLDNEW
« no previous file with comments | « chrome/renderer/chrome_content_renderer_client.cc ('k') | content/public/renderer/content_renderer_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698