OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_COMMON_EXTENSIONS_EXTENSION_H_ | 5 #ifndef CHROME_COMMON_EXTENSIONS_EXTENSION_H_ |
6 #define CHROME_COMMON_EXTENSIONS_EXTENSION_H_ | 6 #define CHROME_COMMON_EXTENSIONS_EXTENSION_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <algorithm> | 9 #include <algorithm> |
10 #include <map> | 10 #include <map> |
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
196 std::string lang; | 196 std::string lang; |
197 std::string gender; | 197 std::string gender; |
198 std::set<std::string> event_types; | 198 std::set<std::string> event_types; |
199 }; | 199 }; |
200 | 200 |
201 // OAuth2 info included in the extension. | 201 // OAuth2 info included in the extension. |
202 struct OAuth2Info { | 202 struct OAuth2Info { |
203 OAuth2Info(); | 203 OAuth2Info(); |
204 ~OAuth2Info(); | 204 ~OAuth2Info(); |
205 | 205 |
| 206 ExtensionOAuth2Scopes GetScopesAsSet(); |
| 207 |
206 std::string client_id; | 208 std::string client_id; |
207 std::vector<std::string> scopes; | 209 std::vector<std::string> scopes; |
208 }; | 210 }; |
209 | 211 |
210 enum InitFromValueFlags { | 212 enum InitFromValueFlags { |
211 NO_FLAGS = 0, | 213 NO_FLAGS = 0, |
212 | 214 |
213 // Usually, the id of an extension is generated by the "key" property of | 215 // Usually, the id of an extension is generated by the "key" property of |
214 // its manifest, but if |REQUIRE_KEY| is not set, a temporary ID will be | 216 // its manifest, but if |REQUIRE_KEY| is not set, a temporary ID will be |
215 // generated based on the path. | 217 // generated based on the path. |
(...skipping 899 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1115 // only contain the removed permissions. | 1117 // only contain the removed permissions. |
1116 const ExtensionPermissionSet* permissions; | 1118 const ExtensionPermissionSet* permissions; |
1117 | 1119 |
1118 UpdatedExtensionPermissionsInfo( | 1120 UpdatedExtensionPermissionsInfo( |
1119 const Extension* extension, | 1121 const Extension* extension, |
1120 const ExtensionPermissionSet* permissions, | 1122 const ExtensionPermissionSet* permissions, |
1121 Reason reason); | 1123 Reason reason); |
1122 }; | 1124 }; |
1123 | 1125 |
1124 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_H_ | 1126 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_H_ |
OLD | NEW |