Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1647)

Side by Side Diff: chrome/common/extensions/extension.h

Issue 10909239: Rename PACKAGED_APP references to LEGACY_PACKAGED_APP (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 }; 124 };
125 125
126 // Do not change the order of entries or remove entries in this list 126 // Do not change the order of entries or remove entries in this list
127 // as this is used in UMA_HISTOGRAM_ENUMERATIONs about extensions. 127 // as this is used in UMA_HISTOGRAM_ENUMERATIONs about extensions.
128 enum Type { 128 enum Type {
129 TYPE_UNKNOWN = 0, 129 TYPE_UNKNOWN = 0,
130 TYPE_EXTENSION, 130 TYPE_EXTENSION,
131 TYPE_THEME, 131 TYPE_THEME,
132 TYPE_USER_SCRIPT, 132 TYPE_USER_SCRIPT,
133 TYPE_HOSTED_APP, 133 TYPE_HOSTED_APP,
134 TYPE_PACKAGED_APP, 134 TYPE_LEGACY_PACKAGED_APP,
Nico 2012/09/27 02:15:14 What's the motivation behind this change? Do you w
135 TYPE_PLATFORM_APP 135 TYPE_PLATFORM_APP
136 }; 136 };
137 137
138 enum SyncType { 138 enum SyncType {
139 SYNC_TYPE_NONE = 0, 139 SYNC_TYPE_NONE = 0,
140 SYNC_TYPE_EXTENSION, 140 SYNC_TYPE_EXTENSION,
141 SYNC_TYPE_APP 141 SYNC_TYPE_APP
142 }; 142 };
143 143
144 // Declared requirements for the extension. 144 // Declared requirements for the extension.
(...skipping 572 matching lines...) Expand 10 before | Expand all | Expand 10 after
717 bool wants_file_access() const { return wants_file_access_; } 717 bool wants_file_access() const { return wants_file_access_; }
718 int creation_flags() const { return creation_flags_; } 718 int creation_flags() const { return creation_flags_; }
719 bool from_webstore() const { return (creation_flags_ & FROM_WEBSTORE) != 0; } 719 bool from_webstore() const { return (creation_flags_ & FROM_WEBSTORE) != 0; }
720 bool from_bookmark() const { return (creation_flags_ & FROM_BOOKMARK) != 0; } 720 bool from_bookmark() const { return (creation_flags_ & FROM_BOOKMARK) != 0; }
721 bool was_installed_by_default() const { 721 bool was_installed_by_default() const {
722 return (creation_flags_ & WAS_INSTALLED_BY_DEFAULT) != 0; 722 return (creation_flags_ & WAS_INSTALLED_BY_DEFAULT) != 0;
723 } 723 }
724 724
725 // App-related. 725 // App-related.
726 bool is_app() const { 726 bool is_app() const {
727 return is_packaged_app() || is_hosted_app() || is_platform_app(); 727 return is_legacy_packaged_app() || is_hosted_app() || is_platform_app();
728 } 728 }
729 bool is_platform_app() const; 729 bool is_platform_app() const;
730 bool is_hosted_app() const; 730 bool is_hosted_app() const;
731 bool is_packaged_app() const; 731 bool is_legacy_packaged_app() const;
732 bool is_storage_isolated() const { return is_storage_isolated_; } 732 bool is_storage_isolated() const { return is_storage_isolated_; }
733 const URLPatternSet& web_extent() const { return extent_; } 733 const URLPatternSet& web_extent() const { return extent_; }
734 const std::string& launch_local_path() const { return launch_local_path_; } 734 const std::string& launch_local_path() const { return launch_local_path_; }
735 const std::string& launch_web_url() const { return launch_web_url_; } 735 const std::string& launch_web_url() const { return launch_web_url_; }
736 extension_misc::LaunchContainer launch_container() const { 736 extension_misc::LaunchContainer launch_container() const {
737 return launch_container_; 737 return launch_container_;
738 } 738 }
739 int launch_width() const { return launch_width_; } 739 int launch_width() const { return launch_width_; }
740 int launch_height() const { return launch_height_; } 740 int launch_height() const { return launch_height_; }
741 741
(...skipping 489 matching lines...) Expand 10 before | Expand all | Expand 10 after
1231 1231
1232 UpdatedExtensionPermissionsInfo( 1232 UpdatedExtensionPermissionsInfo(
1233 const Extension* extension, 1233 const Extension* extension,
1234 const PermissionSet* permissions, 1234 const PermissionSet* permissions,
1235 Reason reason); 1235 Reason reason);
1236 }; 1236 };
1237 1237
1238 } // namespace extensions 1238 } // namespace extensions
1239 1239
1240 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_H_ 1240 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_H_
OLDNEW
« no previous file with comments | « chrome/common/extensions/csp_validator_unittest.cc ('k') | chrome/common/extensions/extension.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698