| Index: extensions/renderer/bindings/api_request_handler.h
|
| diff --git a/extensions/renderer/bindings/api_request_handler.h b/extensions/renderer/bindings/api_request_handler.h
|
| index c395aa7a605be475b9b961087e916d8b5dc3df76..a2ce5da8ed61b090a1fd1dbfe1d76725c75b6c0b 100644
|
| --- a/extensions/renderer/bindings/api_request_handler.h
|
| +++ b/extensions/renderer/bindings/api_request_handler.h
|
| @@ -85,6 +85,7 @@ class APIRequestHandler {
|
| void InvalidateContext(v8::Local<v8::Context> context);
|
|
|
| APILastError* last_error() { return &last_error_; }
|
| + int last_sent_request_id() const { return last_sent_request_id_; }
|
|
|
| std::set<int> GetPendingRequestIdsForTesting() const;
|
|
|
| @@ -108,6 +109,11 @@ class APIRequestHandler {
|
| // The next available request identifier.
|
| int next_request_id_ = 0;
|
|
|
| + // The id of the last request we sent to the browser. This can be used as a
|
| + // flag for whether or not a request was sent (if the last_sent_request_id_
|
| + // changes).
|
| + int last_sent_request_id_ = -1;
|
| +
|
| // A map of all pending requests.
|
| std::map<int, PendingRequest> pending_requests_;
|
|
|
|
|