mirror of
https://github.com/HeyPuter/firefox.git
synced 2026-11-29 02:17:45 -10:00
* Has storage providers metadata * Scan for storage providers returning preferred provider * Helper methods to access cloud services prefs * Helper method to set cloud storage as default download directory * Notify observers for displaying cloud storage prompt * Support pref value browser.downloads.folderList 3 * Read dropbox custom downloadpath from info.json * Handle rejected providers by saving response in cloud.services.rejected.key * Load providers metadata from providers.json * Tested using add-on implemented in Bug 1365129 * Tests for Linux, Mac and Win Platform MozReview-Commit-ID: LrmoDfsRTBV
28 lines
742 B
JSON
28 lines
742 B
JSON
{
|
|
"Dropbox": {
|
|
"displayName": "Dropbox",
|
|
"relativeDownloadPath": ["homeDir", "Dropbox"],
|
|
"relativeDiscoveryPath": {
|
|
"linux": ["homeDir", ".dropbox", "info.json"],
|
|
"macosx": ["homeDir", ".dropbox", "info.json"],
|
|
"win": ["LocalAppData", "Dropbox", "info.json"]
|
|
},
|
|
"typeSpecificData": {
|
|
"default": "Downloads",
|
|
"screenshot": "Screenshots"
|
|
}
|
|
},
|
|
|
|
"GDrive": {
|
|
"displayName": "Google Drive",
|
|
"relativeDownloadPath": ["homeDir", "Google Drive"],
|
|
"relativeDiscoveryPath": {
|
|
"macosx": ["homeDir", "Library", "Application Support", "Google", "Drive"],
|
|
"win": ["LocalAppData", "Google", "Drive"]
|
|
},
|
|
"typeSpecificData": {
|
|
"default": "Downloads"
|
|
}
|
|
}
|
|
}
|