| Index: content/browser/loader/resource_scheduler.h
|
| diff --git a/content/browser/loader/resource_scheduler.h b/content/browser/loader/resource_scheduler.h
|
| index 74ac16d3d42be6fa23f226b134817d030364d3c1..95c244b995129080d0b3c690d88901056fbd703e 100644
|
| --- a/content/browser/loader/resource_scheduler.h
|
| +++ b/content/browser/loader/resource_scheduler.h
|
| @@ -13,6 +13,7 @@
|
| #include "base/memory/scoped_ptr.h"
|
| #include "base/threading/non_thread_safe.h"
|
| #include "base/timer/timer.h"
|
| +#include "content/browser/web_contents/web_contents_impl.h"
|
| #include "content/common/content_export.h"
|
| #include "net/base/priority_queue.h"
|
| #include "net/base/request_priority.h"
|
| @@ -103,7 +104,9 @@ 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);
|
| + void OnClientCreated(int child_id,
|
| + int route_id,
|
| + WebContentsImpl* web_contents);
|
|
|
| // Called when a renderer is destroyed.
|
| void OnClientDeleted(int child_id, int route_id);
|
| @@ -131,11 +134,10 @@ class CONTENT_EXPORT ResourceScheduler : public base::NonThreadSafe {
|
| // Called when a Client starts or stops playing audio.
|
| void OnAudibilityChanged(int child_id, int route_id, bool is_audible);
|
|
|
| - // Called when a Client is shown or hidden.
|
| - void OnVisibilityChanged(int child_id, int route_id, bool is_visible);
|
| -
|
| void OnLoadingStateChanged(int child_id, int route_id, bool is_loaded);
|
|
|
| + bool IsClientVisibleForTesting(int child_id, int route_id);
|
| +
|
| private:
|
| class RequestQueue;
|
| class ScheduledResourceRequest;
|
|
|