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 773 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
784 return (creation_flags_ & WAS_INSTALLED_BY_DEFAULT) != 0; | 784 return (creation_flags_ & WAS_INSTALLED_BY_DEFAULT) != 0; |
785 } | 785 } |
786 | 786 |
787 // App-related. | 787 // App-related. |
788 bool is_app() const { | 788 bool is_app() const { |
789 return is_legacy_packaged_app() || is_hosted_app() || is_platform_app(); | 789 return is_legacy_packaged_app() || is_hosted_app() || is_platform_app(); |
790 } | 790 } |
791 bool is_platform_app() const; | 791 bool is_platform_app() const; |
792 bool is_hosted_app() const; | 792 bool is_hosted_app() const; |
793 bool is_legacy_packaged_app() const; | 793 bool is_legacy_packaged_app() const; |
| 794 bool is_extension() const; |
794 bool is_storage_isolated() const { return is_storage_isolated_; } | 795 bool is_storage_isolated() const { return is_storage_isolated_; } |
795 bool can_be_incognito_enabled() const; | 796 bool can_be_incognito_enabled() const; |
796 const URLPatternSet& web_extent() const { return extent_; } | 797 const URLPatternSet& web_extent() const { return extent_; } |
797 const std::string& launch_local_path() const { return launch_local_path_; } | 798 const std::string& launch_local_path() const { return launch_local_path_; } |
798 const std::string& launch_web_url() const { return launch_web_url_; } | 799 const std::string& launch_web_url() const { return launch_web_url_; } |
799 extension_misc::LaunchContainer launch_container() const { | 800 extension_misc::LaunchContainer launch_container() const { |
800 return launch_container_; | 801 return launch_container_; |
801 } | 802 } |
802 int launch_width() const { return launch_width_; } | 803 int launch_width() const { return launch_width_; } |
803 int launch_height() const { return launch_height_; } | 804 int launch_height() const { return launch_height_; } |
(...skipping 517 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1321 | 1322 |
1322 UpdatedExtensionPermissionsInfo( | 1323 UpdatedExtensionPermissionsInfo( |
1323 const Extension* extension, | 1324 const Extension* extension, |
1324 const PermissionSet* permissions, | 1325 const PermissionSet* permissions, |
1325 Reason reason); | 1326 Reason reason); |
1326 }; | 1327 }; |
1327 | 1328 |
1328 } // namespace extensions | 1329 } // namespace extensions |
1329 | 1330 |
1330 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_H_ | 1331 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_H_ |
OLD | NEW |