| Index: components/offline_pages/background/request_coordinator.h
|
| diff --git a/components/offline_pages/background/request_coordinator.h b/components/offline_pages/background/request_coordinator.h
|
| index ffbb8570499257b13d5d6f8b66ab650d85d5e887..786836902c550bdb197283b415a345a9cd00d5e1 100644
|
| --- a/components/offline_pages/background/request_coordinator.h
|
| +++ b/components/offline_pages/background/request_coordinator.h
|
| @@ -73,6 +73,10 @@ class RequestCoordinator : public KeyedService {
|
| return last_offlining_status_;
|
| }
|
|
|
| + bool is_busy() {
|
| + return is_busy_;
|
| + }
|
| +
|
| private:
|
| void AddRequestResultCallback(RequestQueue::AddRequestResult result,
|
| const SavePageRequest& request);
|
| @@ -96,6 +100,10 @@ class RequestCoordinator : public KeyedService {
|
|
|
| friend class RequestCoordinatorTest;
|
|
|
| + // The offliner can only handle one request at a time - if the offliner is
|
| + // busy, prevent other requests. This flag marks whether the offliner is in
|
| + // use.
|
| + bool is_busy_;
|
| // RequestCoordinator takes over ownership of the policy
|
| std::unique_ptr<OfflinerPolicy> policy_;
|
| // OfflinerFactory. Used to create offline pages. Owned.
|
|
|