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 529 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
540 return manifest_value_.get(); | 540 return manifest_value_.get(); |
541 } | 541 } |
542 const std::string default_locale() const { return default_locale_; } | 542 const std::string default_locale() const { return default_locale_; } |
543 const URLOverrideMap& GetChromeURLOverrides() const { | 543 const URLOverrideMap& GetChromeURLOverrides() const { |
544 return chrome_url_overrides_; | 544 return chrome_url_overrides_; |
545 } | 545 } |
546 const std::string omnibox_keyword() const { return omnibox_keyword_; } | 546 const std::string omnibox_keyword() const { return omnibox_keyword_; } |
547 bool incognito_split_mode() const { return incognito_split_mode_; } | 547 bool incognito_split_mode() const { return incognito_split_mode_; } |
548 bool offline_enabled() const { return offline_enabled_; } | 548 bool offline_enabled() const { return offline_enabled_; } |
549 const std::vector<TtsVoice>& tts_voices() const { return tts_voices_; } | 549 const std::vector<TtsVoice>& tts_voices() const { return tts_voices_; } |
550 const std::vector<WebIntentServiceData>& intents() const { return intents_; } | 550 const std::vector<webkit_glue::WebIntentServiceData>& |
| 551 intents_services() const { |
| 552 return intents_services_; |
| 553 } |
551 | 554 |
552 bool wants_file_access() const { return wants_file_access_; } | 555 bool wants_file_access() const { return wants_file_access_; } |
553 int creation_flags() const { return creation_flags_; } | 556 int creation_flags() const { return creation_flags_; } |
554 bool from_webstore() const { return (creation_flags_ & FROM_WEBSTORE) != 0; } | 557 bool from_webstore() const { return (creation_flags_ & FROM_WEBSTORE) != 0; } |
555 bool from_bookmark() const { return (creation_flags_ & FROM_BOOKMARK) != 0; } | 558 bool from_bookmark() const { return (creation_flags_ & FROM_BOOKMARK) != 0; } |
556 | 559 |
557 const std::string& content_security_policy() const { | 560 const std::string& content_security_policy() const { |
558 return content_security_policy_; | 561 return content_security_policy_; |
559 } | 562 } |
560 | 563 |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
649 const char* list_error, | 652 const char* list_error, |
650 const char* value_error, | 653 const char* value_error, |
651 URLPattern::ParseOption parse_strictness, | 654 URLPattern::ParseOption parse_strictness, |
652 std::string* error); | 655 std::string* error); |
653 bool LoadLaunchContainer(const base::DictionaryValue* manifest, | 656 bool LoadLaunchContainer(const base::DictionaryValue* manifest, |
654 std::string* error); | 657 std::string* error); |
655 bool LoadLaunchURL(const base::DictionaryValue* manifest, | 658 bool LoadLaunchURL(const base::DictionaryValue* manifest, |
656 std::string* error); | 659 std::string* error); |
657 bool LoadAppIsolation(const base::DictionaryValue* manifest, | 660 bool LoadAppIsolation(const base::DictionaryValue* manifest, |
658 std::string* error); | 661 std::string* error); |
659 bool LoadWebIntents(const base::DictionaryValue& manifest, | 662 bool LoadWebIntentsServices(const base::DictionaryValue& manifest, |
660 std::string* error); | 663 std::string* error); |
661 bool EnsureNotHybridApp(const base::DictionaryValue* manifest, | 664 bool EnsureNotHybridApp(const base::DictionaryValue* manifest, |
662 std::string* error); | 665 std::string* error); |
663 | 666 |
664 // Helper method to load an ExtensionAction from the page_action or | 667 // Helper method to load an ExtensionAction from the page_action or |
665 // browser_action entries in the manifest. | 668 // browser_action entries in the manifest. |
666 ExtensionAction* LoadExtensionActionHelper( | 669 ExtensionAction* LoadExtensionActionHelper( |
667 const base::DictionaryValue* extension_action, std::string* error); | 670 const base::DictionaryValue* extension_action, std::string* error); |
668 | 671 |
669 // Helper method to load an FileBrowserHandlerList from the manifest. | 672 // Helper method to load an FileBrowserHandlerList from the manifest. |
670 FileBrowserHandlerList* LoadFileBrowserHandlers( | 673 FileBrowserHandlerList* LoadFileBrowserHandlers( |
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
841 // containers like panels and windows. | 844 // containers like panels and windows. |
842 int launch_width_; | 845 int launch_width_; |
843 int launch_height_; | 846 int launch_height_; |
844 | 847 |
845 // The Omnibox keyword for this extension, or empty if there is none. | 848 // The Omnibox keyword for this extension, or empty if there is none. |
846 std::string omnibox_keyword_; | 849 std::string omnibox_keyword_; |
847 | 850 |
848 // List of text-to-speech voices that this extension provides, if any. | 851 // List of text-to-speech voices that this extension provides, if any. |
849 std::vector<TtsVoice> tts_voices_; | 852 std::vector<TtsVoice> tts_voices_; |
850 | 853 |
851 // List of intents that this extension provides, if any. | 854 // List of intent services that this extension provides, if any. |
852 std::vector<WebIntentServiceData> intents_; | 855 std::vector<webkit_glue::WebIntentServiceData> intents_services_; |
853 | 856 |
854 // Whether the extension has host permissions or user script patterns that | 857 // Whether the extension has host permissions or user script patterns that |
855 // imply access to file:/// scheme URLs (the user may not have actually | 858 // imply access to file:/// scheme URLs (the user may not have actually |
856 // granted it that access). | 859 // granted it that access). |
857 bool wants_file_access_; | 860 bool wants_file_access_; |
858 | 861 |
859 // The flags that were passed to InitFromValue. | 862 // The flags that were passed to InitFromValue. |
860 int creation_flags_; | 863 int creation_flags_; |
861 | 864 |
862 // The Content-Security-Policy for this extension. Extensions can use | 865 // The Content-Security-Policy for this extension. Extensions can use |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
923 // only contain the removed permissions. | 926 // only contain the removed permissions. |
924 const ExtensionPermissionSet* permissions; | 927 const ExtensionPermissionSet* permissions; |
925 | 928 |
926 UpdatedExtensionPermissionsInfo( | 929 UpdatedExtensionPermissionsInfo( |
927 const Extension* extension, | 930 const Extension* extension, |
928 const ExtensionPermissionSet* permissions, | 931 const ExtensionPermissionSet* permissions, |
929 Reason reason); | 932 Reason reason); |
930 }; | 933 }; |
931 | 934 |
932 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_H_ | 935 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_H_ |
OLD | NEW |