michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this file, michael@0: * You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #ifndef DOM_MEDIA_MEDIAPERMISSIONGONK_H michael@0: #define DOM_MEDIA_MEDIAPERMISSIONGONK_H michael@0: michael@0: #include "nsError.h" michael@0: #include "nsIObserver.h" michael@0: #include "nsISupportsImpl.h" michael@0: #include "GetUserMediaRequest.h" michael@0: michael@0: namespace mozilla { michael@0: michael@0: /** michael@0: * The observer to create the MediaPermissionMgr. This is the entry point of michael@0: * permission request on b2g. michael@0: */ michael@0: class MediaPermissionManager : public nsIObserver michael@0: { michael@0: public: michael@0: NS_DECL_ISUPPORTS michael@0: NS_DECL_NSIOBSERVER michael@0: michael@0: static MediaPermissionManager* GetInstance(); michael@0: virtual ~MediaPermissionManager(); michael@0: michael@0: private: michael@0: MediaPermissionManager(); michael@0: nsresult Deinit(); michael@0: nsresult HandleRequest(nsRefPtr &req); michael@0: }; michael@0: michael@0: } // namespace mozilla michael@0: #endif // DOM_MEDIA_MEDIAPERMISSIONGONK_H michael@0: