15f1c94371a64b3196d4be9466099bb892df9b88eTorne (Richard Coles)// Copyright 2014 The Chromium Authors. All rights reserved.
25f1c94371a64b3196d4be9466099bb892df9b88eTorne (Richard Coles)// Use of this source code is governed by a BSD-style license that can be
35f1c94371a64b3196d4be9466099bb892df9b88eTorne (Richard Coles)// found in the LICENSE file.
45f1c94371a64b3196d4be9466099bb892df9b88eTorne (Richard Coles)
55f1c94371a64b3196d4be9466099bb892df9b88eTorne (Richard Coles)#ifndef EXTENSIONS_BROWSER_UNINSTALL_REASON_H_
65f1c94371a64b3196d4be9466099bb892df9b88eTorne (Richard Coles)#define EXTENSIONS_BROWSER_UNINSTALL_REASON_H_
75f1c94371a64b3196d4be9466099bb892df9b88eTorne (Richard Coles)
85f1c94371a64b3196d4be9466099bb892df9b88eTorne (Richard Coles)namespace extensions {
95f1c94371a64b3196d4be9466099bb892df9b88eTorne (Richard Coles)
105f1c94371a64b3196d4be9466099bb892df9b88eTorne (Richard Coles)enum UninstallReason {
115f1c94371a64b3196d4be9466099bb892df9b88eTorne (Richard Coles)  UNINSTALL_REASON_FOR_TESTING,         // Used for testing code only
125f1c94371a64b3196d4be9466099bb892df9b88eTorne (Richard Coles)  UNINSTALL_REASON_USER_INITIATED,      // User performed some UI gesture
135f1c94371a64b3196d4be9466099bb892df9b88eTorne (Richard Coles)  UNINSTALL_REASON_EXTENSION_DISABLED,  // Extension disabled due to error
145f1c94371a64b3196d4be9466099bb892df9b88eTorne (Richard Coles)  UNINSTALL_REASON_STORAGE_THRESHOLD_EXCEEDED,
155f1c94371a64b3196d4be9466099bb892df9b88eTorne (Richard Coles)  UNINSTALL_REASON_INSTALL_CANCELED,
165f1c94371a64b3196d4be9466099bb892df9b88eTorne (Richard Coles)  UNINSTALL_REASON_MANAGEMENT_API,
175f1c94371a64b3196d4be9466099bb892df9b88eTorne (Richard Coles)  UNINSTALL_REASON_SYNC,
185f1c94371a64b3196d4be9466099bb892df9b88eTorne (Richard Coles)  UNINSTALL_REASON_ORPHANED_THEME,
195f1c94371a64b3196d4be9466099bb892df9b88eTorne (Richard Coles)  UNINSTALL_REASON_ORPHANED_EPHEMERAL_EXTENSION,
205f1c94371a64b3196d4be9466099bb892df9b88eTorne (Richard Coles)  // The entries below imply bypassing checking user has permission to
215f1c94371a64b3196d4be9466099bb892df9b88eTorne (Richard Coles)  // uninstall the corresponding extension id.
225f1c94371a64b3196d4be9466099bb892df9b88eTorne (Richard Coles)  UNINSTALL_REASON_ORPHANED_EXTERNAL_EXTENSION,
235f1c94371a64b3196d4be9466099bb892df9b88eTorne (Richard Coles)  UNINSTALL_REASON_ORPHANED_SHARED_MODULE,
241320f92c476a1ad9d19dba2a48c72b75566198e9Primiano Tucci  UNINSTALL_REASON_INTERNAL_MANAGEMENT,  // Internal extensions (see usages)
251320f92c476a1ad9d19dba2a48c72b75566198e9Primiano Tucci  UNINSTALL_REASON_REINSTALL
265f1c94371a64b3196d4be9466099bb892df9b88eTorne (Richard Coles)};
275f1c94371a64b3196d4be9466099bb892df9b88eTorne (Richard Coles)
281320f92c476a1ad9d19dba2a48c72b75566198e9Primiano Tucci}  // namespace extensions
295f1c94371a64b3196d4be9466099bb892df9b88eTorne (Richard Coles)
305f1c94371a64b3196d4be9466099bb892df9b88eTorne (Richard Coles)#endif  // EXTENSIONS_BROWSER_UNINSTALL_REASON_H_
31