OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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_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 235 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
246 bool HasAPIPermission(APIPermission::ID permission) const; | 246 bool HasAPIPermission(APIPermission::ID permission) const; |
247 bool HasAPIPermission(const std::string& function_name) const; | 247 bool HasAPIPermission(const std::string& function_name) const; |
248 scoped_refptr<const PermissionSet> GetActivePermissions() const; | 248 scoped_refptr<const PermissionSet> GetActivePermissions() const; |
249 | 249 |
250 // Whether context menu should be shown for page and browser actions. | 250 // Whether context menu should be shown for page and browser actions. |
251 bool ShowConfigureContextMenus() const; | 251 bool ShowConfigureContextMenus() const; |
252 | 252 |
253 // Gets the fully resolved absolute launch URL. | 253 // Gets the fully resolved absolute launch URL. |
254 GURL GetFullLaunchURL() const; | 254 GURL GetFullLaunchURL() const; |
255 | 255 |
256 // Returns true if this extension updates itself using the extension | |
257 // gallery. | |
258 bool UpdatesFromGallery() const; | |
259 | |
260 // Returns true if this extension or app includes areas within |origin|. | 256 // Returns true if this extension or app includes areas within |origin|. |
261 bool OverlapsWithOrigin(const GURL& origin) const; | 257 bool OverlapsWithOrigin(const GURL& origin) const; |
262 | 258 |
263 // Returns the sync bucket to use for this extension. | 259 // Returns the sync bucket to use for this extension. |
264 SyncType GetSyncType() const; | 260 SyncType GetSyncType() const; |
265 | 261 |
266 // Returns true if the extension should be synced. | 262 // Returns true if the extension should be synced. |
267 bool IsSyncable() const; | 263 bool IsSyncable() const; |
268 | 264 |
269 // Returns true if the extension requires a valid ordinal for sorting, e.g., | 265 // Returns true if the extension requires a valid ordinal for sorting, e.g., |
(...skipping 308 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
578 | 574 |
579 UpdatedExtensionPermissionsInfo( | 575 UpdatedExtensionPermissionsInfo( |
580 const Extension* extension, | 576 const Extension* extension, |
581 const PermissionSet* permissions, | 577 const PermissionSet* permissions, |
582 Reason reason); | 578 Reason reason); |
583 }; | 579 }; |
584 | 580 |
585 } // namespace extensions | 581 } // namespace extensions |
586 | 582 |
587 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_H_ | 583 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_H_ |
OLD | NEW |