// Copyright 2012 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef CHROME_BROWSER_EXTENSIONS_API_IDENTITY_IDENTITY_MINT_QUEUE_H_ #define CHROME_BROWSER_EXTENSIONS_API_IDENTITY_IDENTITY_MINT_QUEUE_H_ #include <list> #include <map> #include <set> #include "base/memory/raw_ptr.h" #include "chrome/browser/extensions/api/identity/extension_token_key.h" namespace extensions { // getAuthToken requests are serialized to avoid excessive traffic to // GAIA and to consolidate UI pop-ups. IdentityMintRequestQueue // maitains a set of queues, one for each RequestKey. // // The queue calls StartMintToken on each Request when it reaches the // head of the line. // // The queue does not own Requests. Request pointers must be valid // until they are removed from the queue with RequestComplete or // RequestCancel. class IdentityMintRequestQueue { … }; } // namespace extensions #endif // CHROME_BROWSER_EXTENSIONS_API_IDENTITY_IDENTITY_MINT_QUEUE_H_