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

Unified Diff: content/browser/loader/resource_scheduler.h

Issue 562273008: Add audio signal to the ResourceScheduler. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 6 years, 2 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/loader/resource_scheduler.h
diff --git a/content/browser/loader/resource_scheduler.h b/content/browser/loader/resource_scheduler.h
index a2a873e77562f7c4b792641338925e74a2f7dca4..b44eb7710bd65048cdbca1905b8bbed0b1ae9870 100644
--- a/content/browser/loader/resource_scheduler.h
+++ b/content/browser/loader/resource_scheduler.h
@@ -111,7 +111,10 @@ class CONTENT_EXPORT ResourceScheduler : public base::NonThreadSafe {
// Signals from the UI thread, posted as tasks on the IO thread:
// Called when a renderer is created.
- void OnClientCreated(int child_id, int route_id, bool is_visible);
+ void OnClientCreated(int child_id,
+ int route_id,
+ bool is_visible,
+ bool is_audible);
// Called when a renderer is destroyed.
void OnClientDeleted(int child_id, int route_id);
@@ -122,6 +125,9 @@ class CONTENT_EXPORT ResourceScheduler : public base::NonThreadSafe {
// Called when a Client is shown or hidden.
void OnVisibilityChanged(int child_id, int route_id, bool is_visible);
+ // Called when a Client starts or stops playing audio.
+ void OnAudibilityChanged(int child_id, int route_id, bool is_audible);
+
// Signals from IPC messages directly from the renderers:
// Called when a client navigates to a new main document.
@@ -142,9 +148,6 @@ class CONTENT_EXPORT ResourceScheduler : public base::NonThreadSafe {
// Called to check if all user observable tabs have completed loading.
bool active_clients_loaded() const { return active_clients_loading_ == 0; }
- // Called when a Client starts or stops playing audio.
- void OnAudibilityChanged(int child_id, int route_id, bool is_audible);
-
bool IsClientVisibleForTesting(int child_id, int route_id);
private:
« no previous file with comments | « content/browser/loader/resource_dispatcher_host_impl.cc ('k') | content/browser/loader/resource_scheduler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698