// Copyright 2012 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

// This features file defines manifest keys implemented under src/chrome.
// See chrome/common/extensions/api/_features.md to understand this file, as
// well as feature.h, simple_feature.h, and feature_provider.h.

{
  "app.linked_icons": {
    "channel": "stable",
    "extension_types": ["hosted_app"]
  },
  "app.launch": {
    "channel": "stable",
    "extension_types": ["legacy_packaged_app", "hosted_app"]
  },
  "browser_action": {
    "channel": "stable",
    "extension_types": ["extension"],
    "max_manifest_version": 2
  },
  "chrome_settings_overrides": {
    "channel": "stable",
    "extension_types": ["extension"]    
  },
  "content_scripts": [
    {
      "channel": "stable",
      "extension_types": ["extension", "legacy_packaged_app"]
    },
    {
      // The URLs that can be matched with content scripts added by login screen
      // extensions are restricted to the Imprivata IdP.
      "channel": "stable",
      "dependencies": ["behavior:imprivata_login_screen_extension"],
      "extension_types": ["login_screen_extension"]
    }
  ],
  "converted_from_user_script": {
    "channel": "stable",
    "extension_types": [
      "extension", "legacy_packaged_app", "hosted_app"
    ]
  },
  "display_in_launcher": [
    {
      "channel": "stable",
      "extension_types": ["legacy_packaged_app", "platform_app", "hosted_app"],
      "location": "component"
    },
    {
      "channel": "stable",
      "extension_types": ["legacy_packaged_app", "platform_app"],
      "allowlist": [
        "64291898C201DAF15B090EC4B9EC270BEB6BE6FF",
        "07BD6A765FFC289FF755D7CAB2893A40EC337FEC",  // http://crbug.com/453955
        "896B85CC7E913E11C34892C1425A093C0701D386",  // http://crbug.com/453955
        "11A01C82EF355E674E4F9728A801F5C3CB40D83F",  // http://crbug.com/453955
        "F410C88469990EE7947450311D24B8AF2ADB2595"   // http://crbug.com/453955
      ]
    }
  ],
  "display_in_new_tab_page": [
    {
      "channel": "stable",
      "extension_types": ["legacy_packaged_app", "platform_app", "hosted_app"],
      "location": "component"
    },
    {
      "channel": "stable",
      "extension_types": ["legacy_packaged_app", "platform_app"],
      "allowlist": [
        "64291898C201DAF15B090EC4B9EC270BEB6BE6FF",
        "07BD6A765FFC289FF755D7CAB2893A40EC337FEC",  // http://crbug.com/453955
        "896B85CC7E913E11C34892C1425A093C0701D386",  // http://crbug.com/453955
        "11A01C82EF355E674E4F9728A801F5C3CB40D83F",  // http://crbug.com/453955
        "F410C88469990EE7947450311D24B8AF2ADB2595"   // http://crbug.com/453955
      ]
    }
  ],
  "file_browser_handlers": {
    "channel": "stable",
    "extension_types": ["extension", "legacy_packaged_app"]
  },
  "file_system_provider_capabilities": [{
    "channel": "stable",
    "extension_types": ["extension", "platform_app"]
  }, {
    "channel": "stable",
    "extension_types": ["legacy_packaged_app"],
    "platforms": ["chromeos"],
    "allowlist": [
      "0EA6B717932AD64C469C1CCB6911457733295907",  // http://crbug.com/673004
      "58B0C2968C335964D5433E89CA4D86628A0E3D4B"   // http://crbug.com/673004
    ]
  }],
  "minimum_chrome_version": {
    "channel": "stable",
    "extension_types": [
      "extension", "legacy_packaged_app", "hosted_app", "platform_app", "theme"
    ]
  },
  "natively_connectable": {
    "channel": "dev",
    "extension_types": ["extension"]
  },
  "omnibox": {
    "channel": "stable",
    "extension_types": ["extension", "legacy_packaged_app"]
  },
  "optional_permissions": {
    "channel": "stable",
    "extension_types": [
      "extension",
      "legacy_packaged_app",
      "hosted_app",
      "platform_app",
      "chromeos_system_extension"
    ]
  },
  "platforms": {
    "channel": "stable",
    "extension_types": "all"
  },
  "side_panel": {
    "channel": "stable",
    "extension_types": ["extension"],
    "min_manifest_version": 3
  },
  "storage": {
    "channel": "stable",
    "extension_types": [
      "extension",
      "legacy_packaged_app",
      "platform_app",
      "login_screen_extension"
    ]
  },
  "theme": {
    "channel": "stable",
    "extension_types": ["theme"]
  },
  "url_handlers": {
    "channel": "stable",
    "extension_types": ["platform_app"]
  }
}