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": "images/icon16.png", 11 "32": "images/icon32.png", 12 "48": "images/icon48.png", 13 "64": "images/icon64.png", 14 "96": "images/icon96.png", 15 "128": "images/icon128.png", 16 "256": "images/icon256.png" 17 }, 18 "permissions": [ 19 "contextMenus", 20 "experimental", 21 "storage", 22 "fileBrowserHandler", 23 "fileBrowserPrivate", 24 "fullscreen", 25 "mediaPlayerPrivate", 26 "mediaGalleriesPrivate", 27 "metricsPrivate", 28 "commandLinePrivate", 29 "unlimitedStorage", 30 "webview", 31 // Comment out chrome:// permissions to debug on a desktop browser. 32 "chrome://extension-icon/", 33 "chrome://resources/", 34 "chrome://theme/", 35 "tabs", 36 "clipboardWrite", 37 "clipboardRead", 38 "https://docs.google.com/", 39 "https://*.googleusercontent.com/", 40 "https://drive.google.com/" 41 ], 42 "file_browser_handlers": [ 43 { 44 "id": "play", 45 "default_title": "__MSG_PLAY_MEDIA__", 46 "default_icon": "images/filetype_audio.png", 47 "file_filters": [ 48 "filesystem:*.amr", 49 "filesystem:*.flac", 50 "filesystem:*.m4a", 51 "filesystem:*.mp3", 52 "filesystem:*.oga", 53 "filesystem:*.ogg", 54 "filesystem:*.wav" 55 ] 56 }, 57 { 58 "id": "watch", 59 "default_title": "__MSG_PLAY_MEDIA__", 60 "default_icon": "images/filetype_video.png", 61 "file_filters": [ 62 "filesystem:*.3gp", 63 "filesystem:*.avi", 64 "filesystem:*.m4v", 65 "filesystem:*.mkv", 66 "filesystem:*.mov", 67 "filesystem:*.mp4", 68 "filesystem:*.mpeg", 69 "filesystem:*.mpeg4", 70 "filesystem:*.mpg", 71 "filesystem:*.mpg4", 72 "filesystem:*.ogm", 73 "filesystem:*.ogv", 74 "filesystem:*.ogx", 75 "filesystem:*.webm" 76 ] 77 }, 78 { 79 "id": "mount-archive", 80 "default_title": "__MSG_MOUNT_ARCHIVE__", 81 "default_icon": "images/filetype_archive.png", 82 "file_filters": [ 83 "filesystem:*.rar", 84 "filesystem:*.tar", 85 "filesystem:*.tar.bz2", 86 "filesystem:*.tar.gz", 87 "filesystem:*.tbz", 88 "filesystem:*.tbz2", 89 "filesystem:*.tgz", 90 "filesystem:*.zip" 91 ] 92 }, 93 { 94 "id": "view-pdf", 95 "default_title": "__MSG_OPEN_ACTION__", 96 "default_icon": "images/filetype_pdf.png", 97 "file_filters": [ 98 "filesystem:*.pdf" 99 ] 100 }, 101 { 102 "id": "view-swf", 103 "default_title": "__MSG_OPEN_ACTION__", 104 "default_icon": "images/filetype_generic.png", 105 "file_filters": [ 106 "filesystem:*.swf" 107 ] 108 }, 109 { 110 "id": "view-in-browser", 111 "default_title": "__MSG_OPEN_ACTION__", 112 "default_icon": "images/filetype_generic.png", 113 "file_filters": [ 114 "filesystem:*.htm", 115 "filesystem:*.html", 116 "filesystem:*.mht", 117 "filesystem:*.mhtml", 118 "filesystem:*.txt" 119 ] 120 }, 121 { 122 "id": "install-crx", 123 "default_title": "__MSG_INSTALL_CRX__", 124 "default_icon": "images/filetype_generic.png", 125 "file_filters": [ 126 "filesystem:*.crx" 127 ] 128 }, 129 { 130 "id": "gallery", 131 "default_title": "__MSG_OPEN_ACTION__", 132 "default_icon": "images/filetype_image.png", 133 "file_filters": [ 134 // Image formats 135 "filesystem:*.bmp", 136 "filesystem:*.gif", 137 "filesystem:*.jpg", 138 "filesystem:*.jpeg", 139 "filesystem:*.png", 140 "filesystem:*.webp", 141 // Video formats 142 "filesystem:*.3gp", 143 "filesystem:*.avi", 144 "filesystem:*.m4v", 145 "filesystem:*.mkv", 146 "filesystem:*.mov", 147 "filesystem:*.mp4", 148 "filesystem:*.mpeg", 149 "filesystem:*.mpeg4", 150 "filesystem:*.mpg", 151 "filesystem:*.mpg4", 152 "filesystem:*.ogm", 153 "filesystem:*.ogv", 154 "filesystem:*.ogx", 155 "filesystem:*.webm" 156 ] 157 }, 158 { 159 "id": "open-hosted-generic", 160 "default_title": "__MSG_HOSTED__", 161 "default_icon": "images/filetype_generic.png", 162 "file_filters": [ 163 "filesystem:*.gdraw", 164 "filesystem:*.gtable" 165 ] 166 }, 167 { 168 "id": "open-hosted-gdoc", 169 "default_title": "__MSG_HOSTED__", 170 "default_icon": "images/filetype_generic.png", 171 "file_filters": [ 172 "filesystem:*.gdoc" 173 ] 174 }, 175 { 176 "id": "open-hosted-gsheet", 177 "default_title": "__MSG_HOSTED__", 178 "default_icon": "images/filetype_generic.png", 179 "file_filters": [ 180 "filesystem:*.gsheet" 181 ] 182 }, 183 { 184 "id": "open-hosted-gslides", 185 "default_title": "__MSG_HOSTED__", 186 "default_icon": "images/filetype_generic.png", 187 "file_filters": [ 188 "filesystem:*.gslides" 189 ] 190 }, 191 // The following handlers are used only internally, therefore they do not 192 // have any file filter. 193 // Automatically opens a volume and later close Files.app when unmounted. 194 { 195 "id": "auto-open", 196 "default_title": "__MSG_OPEN_ACTION__", 197 "default_icon": "images/filetype_generic.png", 198 "file_filters": [] 199 }, 200 // Selects the passed file after launching Files.app. 201 { 202 "id": "select", 203 "default_title": "__MSG_OPEN_ACTION__", 204 "default_icon": "images/filetype_generic.png", 205 "file_filters": [] 206 }, 207 // Opens the passed directory after launching Files.app. 208 { 209 "id": "open", 210 "default_title": "__MSG_OPEN_ACTION__", 211 "default_icon": "images/filetype_generic.png", 212 "file_filters": [] 213 } 214 ], 215 "chrome_url_overrides": { 216 "files": "main.html" 217 }, 218 // Required to import scripts in a web worker. Note, that in Apps v2, it is 219 // enough that anything is passed to web_accessible_resources. If there is 220 // at least any file, then all files are allowed. http://crbug.com/179127. 221 "web_accessible_resources": ["js/metadata/byte_reader.js"], 222 "app": { 223 "background": { 224 "scripts": [ 225 "chrome://resources/js/cr.js", 226 "chrome://resources/js/cr/event_target.js", 227 "js/file_copy_manager.js", 228 "js/async_util.js", 229 "js/path_util.js", 230 "js/util.js", 231 "js/test_util.js", 232 "js/background.js"] 233 }, 234 // chrome-extension://pmfjbimdmchhbnneeidfognadeopoehp is the image loader extension. 235 "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'" 236 } 237 } 238