Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(108)

Side by Side Diff: chrome/browser/extensions/api/identity/extension_token_key.h

Issue 163013002: [Identity] Use const ref on ExtensionTokenKey parameter (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/extensions/api/identity/extension_token_key.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 #ifndef CHROME_BROWSER_EXTENSIONS_API_IDENTITY_EXTENSION_TOKEN_KEY_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_IDENTITY_EXTENSION_TOKEN_KEY_H_
6 #define CHROME_BROWSER_EXTENSIONS_API_IDENTITY_EXTENSION_TOKEN_KEY_H_ 6 #define CHROME_BROWSER_EXTENSIONS_API_IDENTITY_EXTENSION_TOKEN_KEY_H_
7 7
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 10
11 namespace extensions { 11 namespace extensions {
12 12
13 struct ExtensionTokenKey { 13 struct ExtensionTokenKey {
14 ExtensionTokenKey(const std::string& extension_id, 14 ExtensionTokenKey(const std::string& extension_id,
15 const std::string& account_id, 15 const std::string& account_id,
16 const std::set<std::string> scopes); 16 const std::set<std::string>& scopes);
17 ~ExtensionTokenKey(); 17 ~ExtensionTokenKey();
18 bool operator<(const ExtensionTokenKey& rhs) const; 18 bool operator<(const ExtensionTokenKey& rhs) const;
19 std::string extension_id; 19 std::string extension_id;
20 std::string account_id; 20 std::string account_id;
21 std::set<std::string> scopes; 21 std::set<std::string> scopes;
22 }; 22 };
23 23
24 } // namespace extensions 24 } // namespace extensions
25 25
26 26
27 #endif // CHROME_BROWSER_EXTENSIONS_API_IDENTITY_EXTENSION_TOKEN_KEY_H_ 27 #endif // CHROME_BROWSER_EXTENSIONS_API_IDENTITY_EXTENSION_TOKEN_KEY_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/extensions/api/identity/extension_token_key.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698