| 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 436 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 447 // Base64-encoded version of the key used to sign this extension. | 447 // Base64-encoded version of the key used to sign this extension. |
| 448 // In pseudocode, returns | 448 // In pseudocode, returns |
| 449 // base::Base64Encode(RSAPrivateKey(pem_file).ExportPublicKey()). | 449 // base::Base64Encode(RSAPrivateKey(pem_file).ExportPublicKey()). |
| 450 const std::string& public_key() const { return public_key_; } | 450 const std::string& public_key() const { return public_key_; } |
| 451 const std::string& description() const { return description_; } | 451 const std::string& description() const { return description_; } |
| 452 int manifest_version() const { return manifest_version_; } | 452 int manifest_version() const { return manifest_version_; } |
| 453 bool converted_from_user_script() const { | 453 bool converted_from_user_script() const { |
| 454 return converted_from_user_script_; | 454 return converted_from_user_script_; |
| 455 } | 455 } |
| 456 const UserScriptList& content_scripts() const { return content_scripts_; } | 456 const UserScriptList& content_scripts() const { return content_scripts_; } |
| 457 const ActionInfo* system_indicator_info() const { | |
| 458 return system_indicator_info_.get(); | |
| 459 } | |
| 460 const std::vector<NaClModuleInfo>& nacl_modules() const { | 457 const std::vector<NaClModuleInfo>& nacl_modules() const { |
| 461 return nacl_modules_; | 458 return nacl_modules_; |
| 462 } | 459 } |
| 463 const PermissionSet* optional_permission_set() const { | 460 const PermissionSet* optional_permission_set() const { |
| 464 return optional_permission_set_.get(); | 461 return optional_permission_set_.get(); |
| 465 } | 462 } |
| 466 const PermissionSet* required_permission_set() const { | 463 const PermissionSet* required_permission_set() const { |
| 467 return required_permission_set_.get(); | 464 return required_permission_set_.get(); |
| 468 } | 465 } |
| 469 // Returns the temporary APIPermissionSet used in initialization. | 466 // Returns the temporary APIPermissionSet used in initialization. |
| (...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 596 bool LoadDescription(string16* error); | 593 bool LoadDescription(string16* error); |
| 597 bool LoadManifestVersion(string16* error); | 594 bool LoadManifestVersion(string16* error); |
| 598 bool LoadNaClModules(string16* error); | 595 bool LoadNaClModules(string16* error); |
| 599 bool LoadSandboxedPages(string16* error); | 596 bool LoadSandboxedPages(string16* error); |
| 600 // Must be called after the "plugins" key has been parsed. | 597 // Must be called after the "plugins" key has been parsed. |
| 601 bool LoadRequirements(string16* error); | 598 bool LoadRequirements(string16* error); |
| 602 bool LoadOfflineEnabled(string16* error); | 599 bool LoadOfflineEnabled(string16* error); |
| 603 bool LoadExtensionFeatures(string16* error); | 600 bool LoadExtensionFeatures(string16* error); |
| 604 bool LoadContentScripts(string16* error); | 601 bool LoadContentScripts(string16* error); |
| 605 bool LoadBrowserAction(string16* error); | 602 bool LoadBrowserAction(string16* error); |
| 606 bool LoadSystemIndicator(string16* error); | |
| 607 bool LoadTextToSpeechVoices(string16* error); | 603 bool LoadTextToSpeechVoices(string16* error); |
| 608 bool LoadIncognitoMode(string16* error); | 604 bool LoadIncognitoMode(string16* error); |
| 609 bool LoadManagedModeFeatures(string16* error); | 605 bool LoadManagedModeFeatures(string16* error); |
| 610 bool LoadManagedModeSites( | 606 bool LoadManagedModeSites( |
| 611 const base::DictionaryValue* content_pack_value, | 607 const base::DictionaryValue* content_pack_value, |
| 612 string16* error); | 608 string16* error); |
| 613 bool LoadManagedModeConfigurations( | 609 bool LoadManagedModeConfigurations( |
| 614 const base::DictionaryValue* content_pack_value, | 610 const base::DictionaryValue* content_pack_value, |
| 615 string16* error); | 611 string16* error); |
| 616 | 612 |
| (...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 715 // An optional longer description of the extension. | 711 // An optional longer description of the extension. |
| 716 std::string description_; | 712 std::string description_; |
| 717 | 713 |
| 718 // True if the extension was generated from a user script. (We show slightly | 714 // True if the extension was generated from a user script. (We show slightly |
| 719 // different UI if so). | 715 // different UI if so). |
| 720 bool converted_from_user_script_; | 716 bool converted_from_user_script_; |
| 721 | 717 |
| 722 // Paths to the content scripts the extension contains. | 718 // Paths to the content scripts the extension contains. |
| 723 UserScriptList content_scripts_; | 719 UserScriptList content_scripts_; |
| 724 | 720 |
| 725 // The extension's system indicator, if any. | |
| 726 scoped_ptr<ActionInfo> system_indicator_info_; | |
| 727 | |
| 728 // Optional list of NaCl modules and associated properties. | 721 // Optional list of NaCl modules and associated properties. |
| 729 std::vector<NaClModuleInfo> nacl_modules_; | 722 std::vector<NaClModuleInfo> nacl_modules_; |
| 730 | 723 |
| 731 // Optional list of extension pages that are sandboxed (served from a unique | 724 // Optional list of extension pages that are sandboxed (served from a unique |
| 732 // origin with a different Content Security Policy). | 725 // origin with a different Content Security Policy). |
| 733 URLPatternSet sandboxed_pages_; | 726 URLPatternSet sandboxed_pages_; |
| 734 | 727 |
| 735 // Content Security Policy that should be used to enforce the sandbox used | 728 // Content Security Policy that should be used to enforce the sandbox used |
| 736 // by sandboxed pages (guaranteed to have the "sandbox" directive without the | 729 // by sandboxed pages (guaranteed to have the "sandbox" directive without the |
| 737 // "allow-same-origin" token). | 730 // "allow-same-origin" token). |
| (...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 850 | 843 |
| 851 UpdatedExtensionPermissionsInfo( | 844 UpdatedExtensionPermissionsInfo( |
| 852 const Extension* extension, | 845 const Extension* extension, |
| 853 const PermissionSet* permissions, | 846 const PermissionSet* permissions, |
| 854 Reason reason); | 847 Reason reason); |
| 855 }; | 848 }; |
| 856 | 849 |
| 857 } // namespace extensions | 850 } // namespace extensions |
| 858 | 851 |
| 859 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_H_ | 852 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_H_ |
| OLD | NEW |