summaryrefslogtreecommitdiff
path: root/chromium/extensions/browser/install_flag.h
blob: e00728dbf6338f9dbc851abe936907a02a00e74c (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
27
28
29
30
31
32
33
34
35
36
37
38
39
// Copyright 2014 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_INSTALL_FLAG_H_
#define EXTENSIONS_BROWSER_INSTALL_FLAG_H_

namespace extensions {

// Flags used when installing an extension, through ExtensionService and
// ExtensionPrefs and beyond.
enum InstallFlag {
  kInstallFlagNone = 0,

  // The requirements of the extension weren't met (for example graphics
  // capabilities).
  kInstallFlagHasRequirementErrors = 1 << 0,

  // Extension is blocklisted for being malware.
  kInstallFlagIsBlocklistedForMalware = 1 << 1,

  // This is an ephemeral app.
  kInstallFlagIsEphemeral_Deprecated = 1 << 2,

  // Install the extension immediately, don't wait until idle.
  kInstallFlagInstallImmediately = 1 << 3,

  // Do not sync the installed extension.
  kInstallFlagDoNotSync = 1 << 4,

  // The user clicked through the install friction dialog when the extension is
  // not included in the Enhanced Safe Browsing CRX allowlist and the user has
  // enabled Enhanced Protection.
  kInstallFlagBypassedSafeBrowsingFriction = 1 << 5,
};

}  // namespace extensions

#endif  // EXTENSIONS_BROWSER_INSTALL_FLAG_H_