diff -r 000000000000 -r 6474c204b198 dom/media/MediaPermissionGonk.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/dom/media/MediaPermissionGonk.h Wed Dec 31 06:09:35 2014 +0100 @@ -0,0 +1,36 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this file, + * You can obtain one at http://mozilla.org/MPL/2.0/. */ + +#ifndef DOM_MEDIA_MEDIAPERMISSIONGONK_H +#define DOM_MEDIA_MEDIAPERMISSIONGONK_H + +#include "nsError.h" +#include "nsIObserver.h" +#include "nsISupportsImpl.h" +#include "GetUserMediaRequest.h" + +namespace mozilla { + +/** + * The observer to create the MediaPermissionMgr. This is the entry point of + * permission request on b2g. + */ +class MediaPermissionManager : public nsIObserver +{ +public: + NS_DECL_ISUPPORTS + NS_DECL_NSIOBSERVER + + static MediaPermissionManager* GetInstance(); + virtual ~MediaPermissionManager(); + +private: + MediaPermissionManager(); + nsresult Deinit(); + nsresult HandleRequest(nsRefPtr &req); +}; + +} // namespace mozilla +#endif // DOM_MEDIA_MEDIAPERMISSIONGONK_H +