Bug 1175860 - Add some documentation to UploadLastDir to make its workings clearer. r=baku

This commit is contained in:
Jonathan Watt
2015-06-08 14:01:01 +01:00
parent 9e2e80c211
commit f359add372
2 changed files with 14 additions and 2 deletions

View File

@@ -39,8 +39,17 @@ class Date;
class File;
class FileList;
class UploadLastDir final : public nsIObserver, public nsSupportsWeakReference {
/**
* A class we use to create a singleton object that is used to keep track of
* the last directory from which the user has picked files (via
* <input type=file>) on a per-domain basis. The implementation uses
* nsIContentPrefService2/NS_CONTENT_PREF_SERVICE_CONTRACTID to store the last
* directory per-domain, and to ensure that whether the directories are
* persistently saved (saved across sessions) or not honors whether or not the
* page is being viewed in private browsing.
*/
class UploadLastDir final : public nsIObserver, public nsSupportsWeakReference
{
~UploadLastDir() {}
public: