1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 #ifndef CHROME_BROWSER_EXTENSIONS_API_IDENTITY_EXTENSION_TOKEN_KEY_H_
6 #define CHROME_BROWSER_EXTENSIONS_API_IDENTITY_EXTENSION_TOKEN_KEY_H_
7 
8 #include <set>
9 #include <string>
10 
11 #include "components/signin/public/identity_manager/account_info.h"
12 
13 namespace extensions {
14 
15 struct ExtensionTokenKey {
16   ExtensionTokenKey(const std::string& extension_id,
17                     const CoreAccountInfo& account_info,
18                     const std::set<std::string>& scopes);
19   ExtensionTokenKey(const ExtensionTokenKey& other);
20   ~ExtensionTokenKey();
21   bool operator<(const ExtensionTokenKey& rhs) const;
22   std::string extension_id;
23   CoreAccountInfo account_info;
24   std::set<std::string> scopes;
25 };
26 
27 }  // namespace extensions
28 
29 
30 #endif  // CHROME_BROWSER_EXTENSIONS_API_IDENTITY_EXTENSION_TOKEN_KEY_H_
31