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 | 7 |
8 #include <algorithm> | 8 #include <algorithm> |
9 #include <iosfwd> | 9 #include <iosfwd> |
10 #include <map> | 10 #include <map> |
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
191 OAuth2Info(); | 191 OAuth2Info(); |
192 ~OAuth2Info(); | 192 ~OAuth2Info(); |
193 | 193 |
194 OAuth2Scopes GetScopesAsSet(); | 194 OAuth2Scopes GetScopesAsSet(); |
195 | 195 |
196 std::string client_id; | 196 std::string client_id; |
197 std::vector<std::string> scopes; | 197 std::vector<std::string> scopes; |
198 }; | 198 }; |
199 | 199 |
200 struct ActionInfo { | 200 struct ActionInfo { |
201 explicit ActionInfo(); | 201 ActionInfo(); |
202 ~ActionInfo(); | 202 ~ActionInfo(); |
203 | 203 |
204 // The types of extension actions. | 204 // The types of extension actions. |
205 enum Type { | 205 enum Type { |
206 TYPE_BROWSER, | 206 TYPE_BROWSER, |
207 TYPE_PAGE, | 207 TYPE_PAGE, |
208 TYPE_SCRIPT_BADGE, | 208 TYPE_SCRIPT_BADGE, |
209 TYPE_SYSTEM_INDICATOR, | 209 TYPE_SYSTEM_INDICATOR, |
210 }; | 210 }; |
211 | 211 |
212 // Empty implies the key wasn't present. | 212 // Empty implies the key wasn't present. |
213 ExtensionIconSet default_icon; | 213 ExtensionIconSet default_icon; |
214 std::string default_title; | 214 std::string default_title; |
215 GURL default_popup_url; | 215 GURL default_popup_url; |
216 // action id -- only used with legacy page actions API. | 216 // action id -- only used with legacy page actions API. |
217 std::string id; | 217 std::string id; |
218 }; | 218 }; |
219 | 219 |
220 struct FileHandlerInfo { | 220 struct FileHandlerInfo { |
221 explicit FileHandlerInfo(); | 221 FileHandlerInfo(); |
222 ~FileHandlerInfo(); | 222 ~FileHandlerInfo(); |
223 std::string id; | 223 std::string id; |
224 std::string title; | 224 std::string title; |
225 | 225 |
226 // File extensions associated with this handler. | 226 // File extensions associated with this handler. |
227 std::set<std::string> extensions; | 227 std::set<std::string> extensions; |
228 | 228 |
229 // MIME types associated with this handler. | 229 // MIME types associated with this handler. |
230 std::set<std::string> types; | 230 std::set<std::string> types; |
231 }; | 231 }; |
(...skipping 1051 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1283 | 1283 |
1284 UpdatedExtensionPermissionsInfo( | 1284 UpdatedExtensionPermissionsInfo( |
1285 const Extension* extension, | 1285 const Extension* extension, |
1286 const PermissionSet* permissions, | 1286 const PermissionSet* permissions, |
1287 Reason reason); | 1287 Reason reason); |
1288 }; | 1288 }; |
1289 | 1289 |
1290 } // namespace extensions | 1290 } // namespace extensions |
1291 | 1291 |
1292 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_H_ | 1292 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_H_ |
OLD | NEW |