| 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 595 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 606 const std::string& public_key() const { return public_key_; } | 606 const std::string& public_key() const { return public_key_; } |
| 607 const std::string& description() const { return description_; } | 607 const std::string& description() const { return description_; } |
| 608 int manifest_version() const { return manifest_version_; } | 608 int manifest_version() const { return manifest_version_; } |
| 609 bool converted_from_user_script() const { | 609 bool converted_from_user_script() const { |
| 610 return converted_from_user_script_; | 610 return converted_from_user_script_; |
| 611 } | 611 } |
| 612 const UserScriptList& content_scripts() const { return content_scripts_; } | 612 const UserScriptList& content_scripts() const { return content_scripts_; } |
| 613 ExtensionAction* script_badge() const { return script_badge_.get(); } | 613 ExtensionAction* script_badge() const { return script_badge_.get(); } |
| 614 ExtensionAction* page_action() const { return page_action_.get(); } | 614 ExtensionAction* page_action() const { return page_action_.get(); } |
| 615 ExtensionAction* browser_action() const { return browser_action_.get(); } | 615 ExtensionAction* browser_action() const { return browser_action_.get(); } |
| 616 bool is_verbose_install_message() const { |
| 617 return !omnibox_keyword().empty() || |
| 618 browser_action() || |
| 619 (page_action() && |
| 620 (page_action_command() || |
| 621 !page_action()->default_icon_path().empty())); |
| 622 } |
| 616 const FileBrowserHandlerList* file_browser_handlers() const { | 623 const FileBrowserHandlerList* file_browser_handlers() const { |
| 617 return file_browser_handlers_.get(); | 624 return file_browser_handlers_.get(); |
| 618 } | 625 } |
| 619 const std::vector<PluginInfo>& plugins() const { return plugins_; } | 626 const std::vector<PluginInfo>& plugins() const { return plugins_; } |
| 620 const std::vector<NaClModuleInfo>& nacl_modules() const { | 627 const std::vector<NaClModuleInfo>& nacl_modules() const { |
| 621 return nacl_modules_; | 628 return nacl_modules_; |
| 622 } | 629 } |
| 623 const std::vector<InputComponentInfo>& input_components() const { | 630 const std::vector<InputComponentInfo>& input_components() const { |
| 624 return input_components_; | 631 return input_components_; |
| 625 } | 632 } |
| (...skipping 581 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1207 | 1214 |
| 1208 UpdatedExtensionPermissionsInfo( | 1215 UpdatedExtensionPermissionsInfo( |
| 1209 const Extension* extension, | 1216 const Extension* extension, |
| 1210 const PermissionSet* permissions, | 1217 const PermissionSet* permissions, |
| 1211 Reason reason); | 1218 Reason reason); |
| 1212 }; | 1219 }; |
| 1213 | 1220 |
| 1214 } // namespace extensions | 1221 } // namespace extensions |
| 1215 | 1222 |
| 1216 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_H_ | 1223 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_H_ |
| OLD | NEW |