Chromium Code Reviews| Index: extensions/common/manifest_location.mojom |
| diff --git a/extensions/common/manifest_location.mojom b/extensions/common/manifest_location.mojom |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..3c7f2e18ee903f32929c62704586f91ea6db9655 |
| --- /dev/null |
| +++ b/extensions/common/manifest_location.mojom |
| @@ -0,0 +1,33 @@ |
| +// Copyright 2017 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +module extensions.mojom; |
| + |
| +// What an extension was loaded from. |
| +// NOTE: These values are stored as integers in the preferences and used |
| +// in histograms so don't remove or reorder existing items. Just append |
| +// to the end. |
| +enum ManifestLocation { |
|
Devlin
2017/03/08 16:22:24
If it were me, I'd probably just opt for using [Na
Noel Gordon
2017/03/08 17:56:09
/me would have just stuck with the ints :) They s
Devlin
2017/03/08 18:05:17
My vote would be to add IPC_ENUM_TRAITS and use na
Noel Gordon
2017/03/09 15:40:11
Sounds like a plan to me, and done.
|
| + INVALID_LOCATION, |
| + INTERNAL, // A crx file from the internal Extensions directory. |
|
Devlin
2017/03/08 16:22:24
If we do stick with this approach, we shouldn't du
Noel Gordon
2017/03/08 17:56:09
Agree if we go this way.
Not sure we should go th
|
| + EXTERNAL_PREF, // A crx file from an external directory (via prefs). |
| + EXTERNAL_REGISTRY, // A crx file from an external directory (via eg the |
| + // registry on Windows). |
| + UNPACKED, // From loading an unpacked extension from the |
| + // extensions settings page. |
| + COMPONENT, // An integral component of Chrome itself, which |
| + // happens to be implemented as an extension. We don't |
| + // show these in the management UI. |
| + EXTERNAL_PREF_DOWNLOAD, // A crx file from an external directory (via |
| + // prefs), installed from an update URL. |
| + EXTERNAL_POLICY_DOWNLOAD, // A crx file from an external directory (via |
| + // admin policies), installed from an update URL. |
| + COMMAND_LINE, // --load-extension. |
| + EXTERNAL_POLICY, // A crx file from an external directory (via admin |
| + // policies), cached locally and installed from the |
| + // cache. |
| + EXTERNAL_COMPONENT, // Similar to COMPONENT in that it's considered an |
| + // internal implementation detail of chrome, but |
| + // installed from an update URL like the *DOWNLOAD ones. |
| +}; |