| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |