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

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

Issue 165414: Disable an extension when it is upgraded to a version that requires more (Closed)
Patch Set: more comments Created 11 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 | « chrome/chrome.gyp ('k') | chrome/common/notification_type.h » ('j') | 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) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 15 matching lines...) Expand all
26 enum Location { 26 enum Location {
27 INVALID, 27 INVALID,
28 INTERNAL, // A crx file from the internal Extensions directory. 28 INTERNAL, // A crx file from the internal Extensions directory.
29 EXTERNAL_PREF, // A crx file from an external directory (via prefs). 29 EXTERNAL_PREF, // A crx file from an external directory (via prefs).
30 EXTERNAL_REGISTRY, // A crx file from an external directory (via eg the 30 EXTERNAL_REGISTRY, // A crx file from an external directory (via eg the
31 // registry on Windows). 31 // registry on Windows).
32 LOAD // --load-extension. 32 LOAD // --load-extension.
33 }; 33 };
34 34
35 enum State { 35 enum State {
36 DISABLED, 36 DISABLED = 0,
37 ENABLED, 37 ENABLED,
38 KILLBIT, // Don't install/upgrade (applies to external extensions only). 38 KILLBIT, // Don't install/upgrade (applies to external extensions only).
39
40 NUM_STATES
39 }; 41 };
40 42
41 enum InstallType { 43 enum InstallType {
42 INSTALL_ERROR, 44 INSTALL_ERROR,
43 DOWNGRADE, 45 DOWNGRADE,
44 REINSTALL, 46 REINSTALL,
45 UPGRADE, 47 UPGRADE,
46 NEW_INSTALL 48 NEW_INSTALL
47 }; 49 };
48 50
(...skipping 291 matching lines...) Expand 10 before | Expand all | Expand 10 after
340 342
341 // True if the background page is ready. 343 // True if the background page is ready.
342 bool background_page_ready_; 344 bool background_page_ready_;
343 345
344 FRIEND_TEST(ExtensionTest, LoadPageActionHelper); 346 FRIEND_TEST(ExtensionTest, LoadPageActionHelper);
345 347
346 DISALLOW_COPY_AND_ASSIGN(Extension); 348 DISALLOW_COPY_AND_ASSIGN(Extension);
347 }; 349 };
348 350
349 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_H_ 351 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_H_
OLDNEW
« no previous file with comments | « chrome/chrome.gyp ('k') | chrome/common/notification_type.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698