Home | History | Annotate | Download | only in file_manager
      1 {
      2   // chrome-extension://hhaomjibdihmijegdhdafkllkbggdgoj/
      3   "key": "MIGdMA0GCSqGSIb3DQEBAQUAA4GLADCBhwKBgQDlhpGghtnNJ7pluQN0RDwbUxwwi99oM35ZEaFYvxPLrf0fIEC18cfDdJi6u4aJ+UoSpgzK731L0P/k4LvK2Rz9kVKOy0+IvuRrWkT7lbrLfA1UEBh02OA1AAshjmyRg4IxCqgl8ia8XWq6HKegS1y1KXZYGgb4qp7Bh9VC4cIzswIBIw==",
      4   "manifest_version": 2,
      5   "name": "Files",
      6   "version": "3.0",
      7   "description": "File Manager",
      8   "incognito" : "split",
      9   "icons": {
     10     "16": "common/images/icon16.png",
     11     "32": "common/images/icon32.png",
     12     "48": "common/images/icon48.png",
     13     "64": "common/images/icon64.png",
     14     "96": "common/images/icon96.png",
     15     "128": "common/images/icon128.png",
     16     "256": "common/images/icon256.png"
     17   },
     18   "permissions": [
     19     // Comment out chrome:// permissions to debug on a desktop browser.
     20     "chrome://extension-icon/",
     21     "chrome://resources/",
     22     "chrome://theme/",
     23     "clipboardRead",
     24     "clipboardWrite",
     25     "commandLinePrivate",
     26     "contextMenus",
     27     "echoPrivate",
     28     "fileBrowserHandler",
     29     "fileManagerPrivate",
     30     "fullscreen",
     31     "https://*.googleusercontent.com/",
     32     "https://docs.google.com/",
     33     "https://drive.google.com/",
     34     "mediaGalleriesPrivate",
     35     "mediaPlayerPrivate",
     36     "metricsPrivate",
     37     "notifications",
     38     "power",
     39     "storage",
     40     "unlimitedStorage",
     41     "webview"
     42   ],
     43   "file_browser_handlers": [
     44     {
     45       "id": "play",
     46       "default_title": "__MSG_PLAY_MEDIA__",
     47       "default_icon": "common/images/file_types/200/audio.png",
     48       "file_filters": [
     49         "filesystem:*.amr",
     50         "filesystem:*.flac",
     51         "filesystem:*.m4a",
     52         "filesystem:*.mp3",
     53         "filesystem:*.oga",
     54         "filesystem:*.ogg",
     55         "filesystem:*.wav"
     56       ]
     57     },
     58     {
     59       "id": "mount-archive",
     60       "default_title": "__MSG_MOUNT_ARCHIVE__",
     61       "default_icon": "common/images/file_types/200/archive.png",
     62       "file_filters": [
     63         "filesystem:*.rar",
     64         "filesystem:*.zip"
     65       ]
     66     },
     67     {
     68       "id": "view-pdf",
     69       "default_title": "__MSG_OPEN_ACTION__",
     70       "default_icon": "common/images/file_types/200/pdf.png",
     71       "file_filters": [
     72         "filesystem:*.pdf"
     73       ]
     74     },
     75     {
     76       "id": "view-swf",
     77       "default_title": "__MSG_OPEN_ACTION__",
     78       "default_icon": "common/images/file_types/200/generic.png",
     79       "file_filters": [
     80         "filesystem:*.swf"
     81       ]
     82     },
     83     {
     84       "id": "view-in-browser",
     85       "default_title": "__MSG_OPEN_ACTION__",
     86       "default_icon": "common/images/file_types/200/generic.png",
     87       "file_filters": [
     88         "filesystem:*.htm",
     89         "filesystem:*.html",
     90         "filesystem:*.mht",
     91         "filesystem:*.mhtml",
     92         "filesystem:*.svg",
     93         "filesystem:*.txt"
     94       ]
     95     },
     96     {
     97       "id": "open-hosted-generic",
     98       "default_title": "__MSG_HOSTED__",
     99       "default_icon": "common/images/file_types/200generic.png",
    100       "file_filters": [
    101         "filesystem:*.gdraw",
    102         "filesystem:*.gtable",
    103         "filesystem:*.gform",
    104         "filesystem:*.glink"
    105       ]
    106     },
    107     {
    108       "id": "open-hosted-gdoc",
    109       "default_title": "__MSG_HOSTED__",
    110       "default_icon": "common/images/file_types/200/generic.png",
    111       "file_filters": [
    112         "filesystem:*.gdoc"
    113       ]
    114     },
    115     {
    116       "id": "open-hosted-gsheet",
    117       "default_title": "__MSG_HOSTED__",
    118       "default_icon": "common/images/file_types/200/generic.png",
    119       "file_filters": [
    120         "filesystem:*.gsheet"
    121       ]
    122     },
    123     {
    124       "id": "open-hosted-gslides",
    125       "default_title": "__MSG_HOSTED__",
    126       "default_icon": "common/images/file_types/200/generic.png",
    127       "file_filters": [
    128         "filesystem:*.gslides"
    129       ]
    130     },
    131     // The following handlers are used only internally, therefore they do not
    132     // have any file filter.
    133     // Automatically opens a volume and later close Files.app when unmounted.
    134     {
    135       "id": "auto-open",
    136       "default_title": "__MSG_OPEN_ACTION__",
    137       "default_icon": "common/images/file_types/200/generic.png",
    138       "file_filters": []
    139     },
    140     // Selects the passed file after launching Files.app.
    141     {
    142       "id": "select",
    143       "default_title": "__MSG_OPEN_ACTION__",
    144       "default_icon": "common/images/file_types/200/generic.png",
    145       "file_filters": []
    146     },
    147     // Opens the passed directory after launching Files.app.
    148     {
    149       "id": "open",
    150       "default_title": "__MSG_OPEN_ACTION__",
    151       "default_icon": "common/images/file_types/200/generic.png",
    152       "file_filters": []
    153     }
    154   ],
    155   // Required to import scripts in a web worker. Note, that in Apps v2, it is
    156   // enough that anything is passed to web_accessible_resources. If there is
    157   // at least any file, then all files are allowed. http://crbug.com/179127.
    158   "web_accessible_resources": [
    159     "background/js/test_util.js",
    160     "background/js/volume_manager.js",
    161     "common/js/async_util.js",
    162     "common/js/error_util.js",
    163     "common/js/path_util.js",
    164     "common/js/util.js",
    165     "common/js/volume_manager_common.js",
    166     "foreground/js/file_type.js",
    167     "foreground/js/metadata/byte_reader.js",
    168     "foreground/js/metadata/exif_parser.js",
    169     "foreground/js/metadata/function_parallel.js",
    170     "foreground/js/metadata/function_sequence.js",
    171     "foreground/js/metadata/id3_parser.js",
    172     "foreground/js/metadata/image_parsers.js",
    173     "foreground/js/metadata/metadata_cache.js",
    174     "foreground/js/metadata/metadata_dispatcher.js",
    175     "foreground/js/metadata/metadata_parser.js",
    176     "foreground/js/metadata/mpeg_parser.js"
    177   ],
    178   "app": {
    179     "background": {
    180       "scripts": [
    181         "common/js/error_util.js",
    182         "chrome://resources/js/load_time_data.js",
    183         "chrome://resources/js/cr.js",
    184         "chrome://resources/js/cr/event_target.js",
    185         "chrome://resources/js/cr/ui/array_data_model.js",
    186         "common/js/async_util.js",
    187         "common/js/progress_center_common.js",
    188         "common/js/util.js",
    189         "common/js/volume_manager_common.js",
    190         "background/js/device_handler.js",
    191         "background/js/drive_sync_handler.js",
    192         "background/js/file_operation_handler.js",
    193         "background/js/file_operation_manager.js",
    194         "background/js/progress_center.js",
    195         "background/js/test_util.js",
    196         "background/js/volume_manager.js",
    197         "background/js/background.js"
    198       ]
    199     },
    200     // chrome-extension://pmfjbimdmchhbnneeidfognadeopoehp is the image loader extension.
    201     "content_security_policy": "default-src 'none'; script-src 'self' chrome://resources chrome-extension://pmfjbimdmchhbnneeidfognadeopoehp; style-src 'self' 'unsafe-inline' chrome://resources; frame-src 'self' about:; img-src 'self' chrome://resources chrome://theme data: https://docs.google.com https://*.googleusercontent.com chrome://extension-icon; media-src 'self' https://*.googleusercontent.com; connect-src https://drive.google.com; object-src 'self'"
    202   }
    203 }
    204