extension_token_key.h revision 5d1f7b1de12d16ceb2c938c56701a3e8bfa558f7
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
11namespace extensions {
12
13struct ExtensionTokenKey {
14  ExtensionTokenKey(const std::string& extension_id,
15                    const std::string& account_id,
16                    const std::set<std::string>& scopes);
17  ~ExtensionTokenKey();
18  bool operator<(const ExtensionTokenKey& rhs) const;
19  std::string extension_id;
20  std::string account_id;
21  std::set<std::string> scopes;
22};
23
24}  // namespace extensions
25
26
27#endif  // CHROME_BROWSER_EXTENSIONS_API_IDENTITY_EXTENSION_TOKEN_KEY_H_
28