| Index: content/browser/loader/resource_scheduler.h
|
| diff --git a/content/browser/loader/resource_scheduler.h b/content/browser/loader/resource_scheduler.h
|
| index b44eb7710bd65048cdbca1905b8bbed0b1ae9870..2b8d7373b4f2c92f20ee194a182e4680a413cb25 100644
|
| --- a/content/browser/loader/resource_scheduler.h
|
| +++ b/content/browser/loader/resource_scheduler.h
|
| @@ -151,6 +151,15 @@ class CONTENT_EXPORT ResourceScheduler : public base::NonThreadSafe {
|
| bool IsClientVisibleForTesting(int child_id, int route_id);
|
|
|
| private:
|
| + enum ClientState {
|
| + // Observable client.
|
| + ACTIVE,
|
| + // Non-observable client.
|
| + BACKGROUND,
|
| + // No client found.
|
| + UNKNOWN,
|
| + };
|
| +
|
| class RequestQueue;
|
| class ScheduledResourceRequest;
|
| struct RequestPriorityParams;
|
| @@ -188,6 +197,10 @@ class CONTENT_EXPORT ResourceScheduler : public base::NonThreadSafe {
|
|
|
| size_t CountCoalescedClients() const;
|
|
|
| + // Returns UNKNOWN if the corresponding client is not found, else returns
|
| + // whether the client is ACTIVE (user-observable) or BACKGROUND.
|
| + ClientState GetClientState(ClientId client_id) const;
|
| +
|
| // Update the queue position for |request|, possibly causing it to start
|
| // loading.
|
| //
|
|
|