| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 <map> | 9 #include <map> |
| 10 #include <set> | 10 #include <set> |
| (...skipping 602 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 613 | 613 |
| 614 // Only allow the experimental API permission if the command line | 614 // Only allow the experimental API permission if the command line |
| 615 // flag is present. | 615 // flag is present. |
| 616 bool IsDisallowedExperimentalPermission( | 616 bool IsDisallowedExperimentalPermission( |
| 617 ExtensionAPIPermission::ID permission) const; | 617 ExtensionAPIPermission::ID permission) const; |
| 618 | 618 |
| 619 // Returns true if this is a component, or we are not attempting to access a | 619 // Returns true if this is a component, or we are not attempting to access a |
| 620 // component-private permission. | 620 // component-private permission. |
| 621 bool IsComponentOnlyPermission(const ExtensionAPIPermission* api) const; | 621 bool IsComponentOnlyPermission(const ExtensionAPIPermission* api) const; |
| 622 | 622 |
| 623 // Updates the launch URL and extents for the extension using the given |
| 624 // |override_url|. |
| 625 void OverrideLaunchUrl(const GURL& override_url); |
| 626 |
| 623 // Cached images for this extension. This should only be touched on the UI | 627 // Cached images for this extension. This should only be touched on the UI |
| 624 // thread. | 628 // thread. |
| 625 mutable ImageCache image_cache_; | 629 mutable ImageCache image_cache_; |
| 626 | 630 |
| 627 // A persistent, globally unique ID. An extension's ID is used in things | 631 // A persistent, globally unique ID. An extension's ID is used in things |
| 628 // like directory structures and URLs, and is expected to not change across | 632 // like directory structures and URLs, and is expected to not change across |
| 629 // versions. It is generated as a SHA-256 hash of the extension's public | 633 // versions. It is generated as a SHA-256 hash of the extension's public |
| 630 // key, or as a hash of the path in the case of unpacked extensions. | 634 // key, or as a hash of the path in the case of unpacked extensions. |
| 631 std::string id_; | 635 std::string id_; |
| 632 | 636 |
| (...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 837 // Was the extension already disabled? | 841 // Was the extension already disabled? |
| 838 bool already_disabled; | 842 bool already_disabled; |
| 839 | 843 |
| 840 // The extension being unloaded - this should always be non-NULL. | 844 // The extension being unloaded - this should always be non-NULL. |
| 841 const Extension* extension; | 845 const Extension* extension; |
| 842 | 846 |
| 843 UnloadedExtensionInfo(const Extension* extension, Reason reason); | 847 UnloadedExtensionInfo(const Extension* extension, Reason reason); |
| 844 }; | 848 }; |
| 845 | 849 |
| 846 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_H_ | 850 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_H_ |
| OLD | NEW |