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

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

Issue 462533002: Make runtime.reload() work with component extensions. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix comment. Created 6 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
« no previous file with comments | « extensions/browser/extension_prefs.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 55
56 typedef std::map<const std::string, linked_ptr<ManifestData> > 56 typedef std::map<const std::string, linked_ptr<ManifestData> >
57 ManifestDataMap; 57 ManifestDataMap;
58 58
59 enum State { 59 enum State {
60 DISABLED = 0, 60 DISABLED = 0,
61 ENABLED, 61 ENABLED,
62 // An external extension that the user uninstalled. We should not reinstall 62 // An external extension that the user uninstalled. We should not reinstall
63 // such extensions on startup. 63 // such extensions on startup.
64 EXTERNAL_EXTENSION_UNINSTALLED, 64 EXTERNAL_EXTENSION_UNINSTALLED,
65 // Special state for component extensions, since they are always loaded by 65 // DEPRECATED: Special state for component extensions.
66 // the component loader, and should never be auto-installed on startup. 66 // Maintained as a placeholder since states may be stored to disk.
67 ENABLED_COMPONENT, 67 ENABLED_COMPONENT_DEPRECATED,
68 NUM_STATES 68 NUM_STATES
69 }; 69 };
70 70
71 // Used to record the reason an extension was disabled. 71 // Used to record the reason an extension was disabled.
72 enum DeprecatedDisableReason { 72 enum DeprecatedDisableReason {
73 DEPRECATED_DISABLE_UNKNOWN, 73 DEPRECATED_DISABLE_UNKNOWN,
74 DEPRECATED_DISABLE_USER_ACTION, 74 DEPRECATED_DISABLE_USER_ACTION,
75 DEPRECATED_DISABLE_PERMISSIONS_INCREASE, 75 DEPRECATED_DISABLE_PERMISSIONS_INCREASE,
76 DEPRECATED_DISABLE_RELOAD, 76 DEPRECATED_DISABLE_RELOAD,
77 DEPRECATED_DISABLE_LAST, // Not used. 77 DEPRECATED_DISABLE_LAST, // Not used.
(...skipping 483 matching lines...) Expand 10 before | Expand all | Expand 10 after
561 561
562 UpdatedExtensionPermissionsInfo( 562 UpdatedExtensionPermissionsInfo(
563 const Extension* extension, 563 const Extension* extension,
564 const PermissionSet* permissions, 564 const PermissionSet* permissions,
565 Reason reason); 565 Reason reason);
566 }; 566 };
567 567
568 } // namespace extensions 568 } // namespace extensions
569 569
570 #endif // EXTENSIONS_COMMON_EXTENSION_H_ 570 #endif // EXTENSIONS_COMMON_EXTENSION_H_
OLDNEW
« no previous file with comments | « extensions/browser/extension_prefs.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698