summaryrefslogtreecommitdiff
path: root/chromium/extensions/browser/unloaded_extension_reason.h
blob: 5ee12382ce51f818b24d123c9dca9c5182b22d03 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// Copyright 2019 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.

#ifndef EXTENSIONS_BROWSER_UNLOADED_EXTENSION_REASON_H_
#define EXTENSIONS_BROWSER_UNLOADED_EXTENSION_REASON_H_

namespace extensions {

// Reasons an extension may have been unloaded.
enum class UnloadedExtensionReason {
  UNDEFINED,              // Undefined state used to initialize variables.
  DISABLE,                // Extension is being disabled.
  UPDATE,                 // Extension is being updated to a newer version.
  UNINSTALL,              // Extension is being uninstalled.
  TERMINATE,              // Extension has terminated.
  BLOCKLIST,              // Extension has been blocklisted.
  PROFILE_SHUTDOWN,       // Profile is being shut down.
  LOCK_ALL,               // All extensions for the profile are blocked.
  MIGRATED_TO_COMPONENT,  // Extension is being migrated to a component
                          // action.
};

}  // namespace extensions

#endif  // EXTENSIONS_BROWSER_UNLOADED_EXTENSION_REASON_H_