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 516 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
527 return manifest_value_.get(); | 527 return manifest_value_.get(); |
528 } | 528 } |
529 const std::string default_locale() const { return default_locale_; } | 529 const std::string default_locale() const { return default_locale_; } |
530 const URLOverrideMap& GetChromeURLOverrides() const { | 530 const URLOverrideMap& GetChromeURLOverrides() const { |
531 return chrome_url_overrides_; | 531 return chrome_url_overrides_; |
532 } | 532 } |
533 const std::string omnibox_keyword() const { return omnibox_keyword_; } | 533 const std::string omnibox_keyword() const { return omnibox_keyword_; } |
534 bool incognito_split_mode() const { return incognito_split_mode_; } | 534 bool incognito_split_mode() const { return incognito_split_mode_; } |
535 bool offline_enabled() const { return offline_enabled_; } | 535 bool offline_enabled() const { return offline_enabled_; } |
536 const std::vector<TtsVoice>& tts_voices() const { return tts_voices_; } | 536 const std::vector<TtsVoice>& tts_voices() const { return tts_voices_; } |
537 const std::vector<WebIntentServiceData>& intents() const { return intents_; } | 537 const std::vector<webkit_glue::WebIntentServiceData>& |
| 538 intents_services() const { |
| 539 return intents_services_; |
| 540 } |
538 | 541 |
539 bool wants_file_access() const { return wants_file_access_; } | 542 bool wants_file_access() const { return wants_file_access_; } |
540 int creation_flags() const { return creation_flags_; } | 543 int creation_flags() const { return creation_flags_; } |
541 bool from_webstore() const { return (creation_flags_ & FROM_WEBSTORE) != 0; } | 544 bool from_webstore() const { return (creation_flags_ & FROM_WEBSTORE) != 0; } |
542 bool from_bookmark() const { return (creation_flags_ & FROM_BOOKMARK) != 0; } | 545 bool from_bookmark() const { return (creation_flags_ & FROM_BOOKMARK) != 0; } |
543 | 546 |
544 const std::string& content_security_policy() const { | 547 const std::string& content_security_policy() const { |
545 return content_security_policy_; | 548 return content_security_policy_; |
546 } | 549 } |
547 | 550 |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
636 const char* list_error, | 639 const char* list_error, |
637 const char* value_error, | 640 const char* value_error, |
638 URLPattern::ParseOption parse_strictness, | 641 URLPattern::ParseOption parse_strictness, |
639 std::string* error); | 642 std::string* error); |
640 bool LoadLaunchContainer(const base::DictionaryValue* manifest, | 643 bool LoadLaunchContainer(const base::DictionaryValue* manifest, |
641 std::string* error); | 644 std::string* error); |
642 bool LoadLaunchURL(const base::DictionaryValue* manifest, | 645 bool LoadLaunchURL(const base::DictionaryValue* manifest, |
643 std::string* error); | 646 std::string* error); |
644 bool LoadAppIsolation(const base::DictionaryValue* manifest, | 647 bool LoadAppIsolation(const base::DictionaryValue* manifest, |
645 std::string* error); | 648 std::string* error); |
646 bool LoadWebIntents(const base::DictionaryValue& manifest, | 649 bool LoadWebIntentServices(const base::DictionaryValue& manifest, |
647 std::string* error); | 650 std::string* error); |
648 bool EnsureNotHybridApp(const base::DictionaryValue* manifest, | 651 bool EnsureNotHybridApp(const base::DictionaryValue* manifest, |
649 std::string* error); | 652 std::string* error); |
650 | 653 |
651 // Helper method to load an ExtensionAction from the page_action or | 654 // Helper method to load an ExtensionAction from the page_action or |
652 // browser_action entries in the manifest. | 655 // browser_action entries in the manifest. |
653 ExtensionAction* LoadExtensionActionHelper( | 656 ExtensionAction* LoadExtensionActionHelper( |
654 const base::DictionaryValue* extension_action, std::string* error); | 657 const base::DictionaryValue* extension_action, std::string* error); |
655 | 658 |
656 // Helper method to load an FileBrowserHandlerList from the manifest. | 659 // Helper method to load an FileBrowserHandlerList from the manifest. |
657 FileBrowserHandlerList* LoadFileBrowserHandlers( | 660 FileBrowserHandlerList* LoadFileBrowserHandlers( |
(...skipping 183 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 |