| 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 5b816f77d524fe852ae532373be16fa493e1e48a..963e655df582ded35bae168c54d7a4aceddc12ff 100644
|
| --- a/components/offline_pages/background/request_coordinator.h
|
| +++ b/components/offline_pages/background/request_coordinator.h
|
| @@ -146,6 +146,10 @@ class RequestCoordinator : public KeyedService,
|
| return is_busy_;
|
| }
|
|
|
| + // Returns whether processing is starting (before it is decided to actually
|
| + // process a request (is_busy()) at this time or not.
|
| + bool is_starting() { return is_starting_; }
|
| +
|
| // Tracks whether the last offlining attempt got canceled. This is reset by
|
| // the next StartProcessing() call.
|
| bool is_canceled() {
|
| @@ -248,7 +252,10 @@ class RequestCoordinator : public KeyedService,
|
| // busy, prevent other requests. This flag marks whether the offliner is in
|
| // use.
|
| bool is_busy_;
|
| - // True if the current request has been canceled.
|
| + // There is more than one path to start processing so this flag is used
|
| + // to avoid race conditions before is_busy_ is established.
|
| + bool is_starting_;
|
| + // True if the current processing window has been canceled.
|
| bool is_stopped_;
|
| // True if we should use the test connection type instead of the actual type.
|
| bool use_test_connection_type_;
|
|
|