OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 EXTENSIONS_COMMON_EXTENSION_H_ | 5 #ifndef EXTENSIONS_COMMON_EXTENSION_H_ |
6 #define EXTENSIONS_COMMON_EXTENSION_H_ | 6 #define EXTENSIONS_COMMON_EXTENSION_H_ |
7 | 7 |
8 #include <algorithm> | 8 #include <algorithm> |
9 #include <iosfwd> | 9 #include <iosfwd> |
10 #include <map> | 10 #include <map> |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
94 DISABLE_UNKNOWN_FROM_SYNC = 1 << 5, | 94 DISABLE_UNKNOWN_FROM_SYNC = 1 << 5, |
95 // DISABLE_PERMISSIONS_CONSENT = 1 << 6, // Deprecated. | 95 // DISABLE_PERMISSIONS_CONSENT = 1 << 6, // Deprecated. |
96 // DISABLE_KNOWN_DISABLED = 1 << 7, // Deprecated. | 96 // DISABLE_KNOWN_DISABLED = 1 << 7, // Deprecated. |
97 DISABLE_NOT_VERIFIED = 1 << 8, // Disabled because we could not verify | 97 DISABLE_NOT_VERIFIED = 1 << 8, // Disabled because we could not verify |
98 // the install. | 98 // the install. |
99 DISABLE_GREYLIST = 1 << 9, | 99 DISABLE_GREYLIST = 1 << 9, |
100 DISABLE_CORRUPTED = 1 << 10, | 100 DISABLE_CORRUPTED = 1 << 10, |
101 DISABLE_REMOTE_INSTALL = 1 << 11 | 101 DISABLE_REMOTE_INSTALL = 1 << 11 |
102 }; | 102 }; |
103 | 103 |
104 enum InstallType { | |
105 INSTALL_ERROR, | |
106 DOWNGRADE, | |
107 REINSTALL, | |
108 UPGRADE, | |
109 NEW_INSTALL | |
110 }; | |
111 | |
112 // A base class for parsed manifest data that APIs want to store on | 104 // A base class for parsed manifest data that APIs want to store on |
113 // the extension. Related to base::SupportsUserData, but with an immutable | 105 // the extension. Related to base::SupportsUserData, but with an immutable |
114 // thread-safe interface to match Extension. | 106 // thread-safe interface to match Extension. |
115 struct ManifestData { | 107 struct ManifestData { |
116 virtual ~ManifestData() {} | 108 virtual ~ManifestData() {} |
117 }; | 109 }; |
118 | 110 |
119 // Do not change the order of entries or remove entries in this list | 111 // Do not change the order of entries or remove entries in this list |
120 // as this is used in UMA_HISTOGRAM_ENUMERATIONs about extensions. | 112 // as this is used in UMA_HISTOGRAM_ENUMERATIONs about extensions. |
121 enum InitFromValueFlags { | 113 enum InitFromValueFlags { |
(...skipping 447 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
569 | 561 |
570 UpdatedExtensionPermissionsInfo( | 562 UpdatedExtensionPermissionsInfo( |
571 const Extension* extension, | 563 const Extension* extension, |
572 const PermissionSet* permissions, | 564 const PermissionSet* permissions, |
573 Reason reason); | 565 Reason reason); |
574 }; | 566 }; |
575 | 567 |
576 } // namespace extensions | 568 } // namespace extensions |
577 | 569 |
578 #endif // EXTENSIONS_COMMON_EXTENSION_H_ | 570 #endif // EXTENSIONS_COMMON_EXTENSION_H_ |
OLD | NEW |