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

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

Issue 11275069: Perform install tasks for newly installed or upgraded component apps/extensions. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: various fixes Created 8 years, 1 month 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 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 92
93 NUM_LOCATIONS 93 NUM_LOCATIONS
94 }; 94 };
95 95
96 enum State { 96 enum State {
97 DISABLED = 0, 97 DISABLED = 0,
98 ENABLED, 98 ENABLED,
99 // An external extension that the user uninstalled. We should not reinstall 99 // An external extension that the user uninstalled. We should not reinstall
100 // such extensions on startup. 100 // such extensions on startup.
101 EXTERNAL_EXTENSION_UNINSTALLED, 101 EXTERNAL_EXTENSION_UNINSTALLED,
102 // Special state for component extensions, since they are always loaded by
103 // the component loader, and should never be auto-installed on startup.
104 ENABLED_COMPONENT,
102 NUM_STATES 105 NUM_STATES
103 }; 106 };
104 107
105 // Used to record the reason an extension was disabled. 108 // Used to record the reason an extension was disabled.
106 enum DeprecatedDisableReason { 109 enum DeprecatedDisableReason {
107 DEPRECATED_DISABLE_UNKNOWN, 110 DEPRECATED_DISABLE_UNKNOWN,
108 DEPRECATED_DISABLE_USER_ACTION, 111 DEPRECATED_DISABLE_USER_ACTION,
109 DEPRECATED_DISABLE_PERMISSIONS_INCREASE, 112 DEPRECATED_DISABLE_PERMISSIONS_INCREASE,
110 DEPRECATED_DISABLE_RELOAD, 113 DEPRECATED_DISABLE_RELOAD,
111 DEPRECATED_DISABLE_LAST, // Not used. 114 DEPRECATED_DISABLE_LAST, // Not used.
(...skipping 1171 matching lines...) Expand 10 before | Expand all | Expand 10 after
1283 1286
1284 UpdatedExtensionPermissionsInfo( 1287 UpdatedExtensionPermissionsInfo(
1285 const Extension* extension, 1288 const Extension* extension,
1286 const PermissionSet* permissions, 1289 const PermissionSet* permissions,
1287 Reason reason); 1290 Reason reason);
1288 }; 1291 };
1289 1292
1290 } // namespace extensions 1293 } // namespace extensions
1291 1294
1292 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_H_ 1295 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698