OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "chrome/browser/extensions/api/identity/extension_token_key.h" | 5 #include "chrome/browser/extensions/api/identity/extension_token_key.h" |
6 | 6 |
7 #include <tuple> | 7 #include <tuple> |
8 | 8 |
9 namespace extensions { | 9 namespace extensions { |
10 | 10 |
11 ExtensionTokenKey::ExtensionTokenKey(const std::string& extension_id, | 11 ExtensionTokenKey::ExtensionTokenKey(const std::string& extension_id, |
12 const std::string& account_id, | 12 const std::string& account_id, |
13 const std::set<std::string>& scopes) | 13 const std::set<std::string>& scopes) |
14 : extension_id(extension_id), account_id(account_id), scopes(scopes) {} | 14 : extension_id(extension_id), account_id(account_id), scopes(scopes) {} |
15 | 15 |
| 16 ExtensionTokenKey::ExtensionTokenKey(const ExtensionTokenKey& other) = default; |
| 17 |
16 ExtensionTokenKey::~ExtensionTokenKey() {} | 18 ExtensionTokenKey::~ExtensionTokenKey() {} |
17 | 19 |
18 bool ExtensionTokenKey::operator<(const ExtensionTokenKey& rhs) const { | 20 bool ExtensionTokenKey::operator<(const ExtensionTokenKey& rhs) const { |
19 return std::tie(extension_id, account_id, scopes) < | 21 return std::tie(extension_id, account_id, scopes) < |
20 std::tie(rhs.extension_id, rhs.account_id, rhs.scopes); | 22 std::tie(rhs.extension_id, rhs.account_id, rhs.scopes); |
21 } | 23 } |
22 | 24 |
23 } // namespace extensions | 25 } // namespace extensions |
OLD | NEW |