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

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

Issue 10828316: Support multiple disable reasons in ExtensionPerfs (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 4 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 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 enum State { 91 enum State {
92 DISABLED = 0, 92 DISABLED = 0,
93 ENABLED, 93 ENABLED,
94 // An external extension that the user uninstalled. We should not reinstall 94 // An external extension that the user uninstalled. We should not reinstall
95 // such extensions on startup. 95 // such extensions on startup.
96 EXTERNAL_EXTENSION_UNINSTALLED, 96 EXTERNAL_EXTENSION_UNINSTALLED,
97 NUM_STATES 97 NUM_STATES
98 }; 98 };
99 99
100 // Used to record the reason an extension was disabled. 100 // Used to record the reason an extension was disabled.
101 enum DeprecatedDisableReason {
102 DEPRECATED_DISABLE_UNKNOWN,
103 DEPRECATED_DISABLE_USER_ACTION,
104 DEPRECATED_DISABLE_PERMISSIONS_INCREASE,
105 DEPRECATED_DISABLE_RELOAD,
106 DEPRECATED_DISABLE_LAST, // Not used.
107 };
108
101 enum DisableReason { 109 enum DisableReason {
102 DISABLE_UNKNOWN, 110 DISABLE_NONE = 0,
103 DISABLE_USER_ACTION, 111 DISABLE_USER_ACTION = 1 << 0,
104 DISABLE_PERMISSIONS_INCREASE, 112 DISABLE_PERMISSIONS_INCREASE = 1 << 1,
105 DISABLE_RELOAD, 113 DISABLE_RELOAD = 1 << 2,
106 DISABLE_LAST, // Not used.
107 }; 114 };
108 115
109 enum InstallType { 116 enum InstallType {
110 INSTALL_ERROR, 117 INSTALL_ERROR,
111 DOWNGRADE, 118 DOWNGRADE,
112 REINSTALL, 119 REINSTALL,
113 UPGRADE, 120 UPGRADE,
114 NEW_INSTALL 121 NEW_INSTALL
115 }; 122 };
116 123
(...skipping 1067 matching lines...) Expand 10 before | Expand all | Expand 10 after
1184 1191
1185 UpdatedExtensionPermissionsInfo( 1192 UpdatedExtensionPermissionsInfo(
1186 const Extension* extension, 1193 const Extension* extension,
1187 const PermissionSet* permissions, 1194 const PermissionSet* permissions,
1188 Reason reason); 1195 Reason reason);
1189 }; 1196 };
1190 1197
1191 } // namespace extensions 1198 } // namespace extensions
1192 1199
1193 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_H_ 1200 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698