| 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 777 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 788 return (creation_flags_ & WAS_INSTALLED_BY_DEFAULT) != 0; | 788 return (creation_flags_ & WAS_INSTALLED_BY_DEFAULT) != 0; |
| 789 } | 789 } |
| 790 | 790 |
| 791 // App-related. | 791 // App-related. |
| 792 bool is_app() const { | 792 bool is_app() const { |
| 793 return is_legacy_packaged_app() || is_hosted_app() || is_platform_app(); | 793 return is_legacy_packaged_app() || is_hosted_app() || is_platform_app(); |
| 794 } | 794 } |
| 795 bool is_platform_app() const; | 795 bool is_platform_app() const; |
| 796 bool is_hosted_app() const; | 796 bool is_hosted_app() const; |
| 797 bool is_legacy_packaged_app() const; | 797 bool is_legacy_packaged_app() const; |
| 798 bool is_extension() const; |
| 798 bool is_storage_isolated() const { return is_storage_isolated_; } | 799 bool is_storage_isolated() const { return is_storage_isolated_; } |
| 799 bool can_be_incognito_enabled() const; | 800 bool can_be_incognito_enabled() const; |
| 800 const URLPatternSet& web_extent() const { return extent_; } | 801 const URLPatternSet& web_extent() const { return extent_; } |
| 801 const std::string& launch_local_path() const { return launch_local_path_; } | 802 const std::string& launch_local_path() const { return launch_local_path_; } |
| 802 const std::string& launch_web_url() const { return launch_web_url_; } | 803 const std::string& launch_web_url() const { return launch_web_url_; } |
| 803 extension_misc::LaunchContainer launch_container() const { | 804 extension_misc::LaunchContainer launch_container() const { |
| 804 return launch_container_; | 805 return launch_container_; |
| 805 } | 806 } |
| 806 int launch_width() const { return launch_width_; } | 807 int launch_width() const { return launch_width_; } |
| 807 int launch_height() const { return launch_height_; } | 808 int launch_height() const { return launch_height_; } |
| (...skipping 520 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1328 | 1329 |
| 1329 UpdatedExtensionPermissionsInfo( | 1330 UpdatedExtensionPermissionsInfo( |
| 1330 const Extension* extension, | 1331 const Extension* extension, |
| 1331 const PermissionSet* permissions, | 1332 const PermissionSet* permissions, |
| 1332 Reason reason); | 1333 Reason reason); |
| 1333 }; | 1334 }; |
| 1334 | 1335 |
| 1335 } // namespace extensions | 1336 } // namespace extensions |
| 1336 | 1337 |
| 1337 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_H_ | 1338 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_H_ |
| OLD | NEW |