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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <algorithm> | 9 #include <algorithm> |
10 #include <map> | 10 #include <map> |
(...skipping 540 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
551 | 551 |
552 // Returns the sync bucket to use for this extension. | 552 // Returns the sync bucket to use for this extension. |
553 SyncType GetSyncType() const; | 553 SyncType GetSyncType() const; |
554 | 554 |
555 // Returns true if the extension should be synced. | 555 // Returns true if the extension should be synced. |
556 bool IsSyncable() const; | 556 bool IsSyncable() const; |
557 | 557 |
558 // Returns true if the extension should be displayed in the launcher. | 558 // Returns true if the extension should be displayed in the launcher. |
559 bool ShouldDisplayInLauncher() const; | 559 bool ShouldDisplayInLauncher() const; |
560 | 560 |
| 561 // Returns true if the extension should be displayed in the extension |
| 562 // settings page (i.e. chrome://extensions). |
| 563 bool ShouldDisplayInExtensionSettings() const; |
| 564 |
561 // Accessors: | 565 // Accessors: |
562 | 566 |
563 const FilePath& path() const { return path_; } | 567 const FilePath& path() const { return path_; } |
564 const GURL& url() const { return extension_url_; } | 568 const GURL& url() const { return extension_url_; } |
565 Location location() const; | 569 Location location() const; |
566 const std::string& id() const; | 570 const std::string& id() const; |
567 const Version* version() const { return version_.get(); } | 571 const Version* version() const { return version_.get(); } |
568 const std::string VersionString() const; | 572 const std::string VersionString() const; |
569 const std::string& name() const { return name_; } | 573 const std::string& name() const { return name_; } |
570 const std::string& non_localized_name() const { return non_localized_name_; } | 574 const std::string& non_localized_name() const { return non_localized_name_; } |
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
779 string16* error); | 783 string16* error); |
780 bool LoadWebIntentServices(string16* error); | 784 bool LoadWebIntentServices(string16* error); |
781 bool LoadExtensionFeatures(const ExtensionAPIPermissionSet& api_permissions, | 785 bool LoadExtensionFeatures(const ExtensionAPIPermissionSet& api_permissions, |
782 string16* error); | 786 string16* error); |
783 bool LoadDevToolsPage(string16* error); | 787 bool LoadDevToolsPage(string16* error); |
784 bool LoadInputComponents(const ExtensionAPIPermissionSet& api_permissions, | 788 bool LoadInputComponents(const ExtensionAPIPermissionSet& api_permissions, |
785 string16* error); | 789 string16* error); |
786 bool LoadContentScripts(string16* error); | 790 bool LoadContentScripts(string16* error); |
787 bool LoadPageAction(string16* error); | 791 bool LoadPageAction(string16* error); |
788 bool LoadBrowserAction(string16* error); | 792 bool LoadBrowserAction(string16* error); |
| 793 void GenerateBrowserAction(); |
789 bool LoadFileBrowserHandlers(string16* error); | 794 bool LoadFileBrowserHandlers(string16* error); |
790 // Helper method to load a FileBrowserHandlerList from the manifest. | 795 // Helper method to load a FileBrowserHandlerList from the manifest. |
791 FileBrowserHandlerList* LoadFileBrowserHandlersHelper( | 796 FileBrowserHandlerList* LoadFileBrowserHandlersHelper( |
792 const base::ListValue* extension_actions, string16* error); | 797 const base::ListValue* extension_actions, string16* error); |
793 // Helper method to load an FileBrowserHandler from manifest. | 798 // Helper method to load an FileBrowserHandler from manifest. |
794 FileBrowserHandler* LoadFileBrowserHandler( | 799 FileBrowserHandler* LoadFileBrowserHandler( |
795 const base::DictionaryValue* file_browser_handlers, string16* error); | 800 const base::DictionaryValue* file_browser_handlers, string16* error); |
796 bool LoadChromeURLOverrides(string16* error); | 801 bool LoadChromeURLOverrides(string16* error); |
797 bool LoadOmnibox(string16* error); | 802 bool LoadOmnibox(string16* error); |
798 bool LoadTextToSpeechVoices(string16* error); | 803 bool LoadTextToSpeechVoices(string16* error); |
(...skipping 324 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1123 // only contain the removed permissions. | 1128 // only contain the removed permissions. |
1124 const ExtensionPermissionSet* permissions; | 1129 const ExtensionPermissionSet* permissions; |
1125 | 1130 |
1126 UpdatedExtensionPermissionsInfo( | 1131 UpdatedExtensionPermissionsInfo( |
1127 const Extension* extension, | 1132 const Extension* extension, |
1128 const ExtensionPermissionSet* permissions, | 1133 const ExtensionPermissionSet* permissions, |
1129 Reason reason); | 1134 Reason reason); |
1130 }; | 1135 }; |
1131 | 1136 |
1132 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_H_ | 1137 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_H_ |
OLD | NEW |