From 4666291a49d77b86c79c50ea97a3754051f3bbe8 Mon Sep 17 00:00:00 2001 From: Caitlin Potter Date: Tue, 11 Jun 2013 21:12:39 -0400 Subject: [PATCH] Bug 881978 - Make WebVTTLoadListener callbacks private. r=rillian WebVTTLoadListener::OnParsedCue() and WebVTTLoadListener::OnReportError() are for private use and should not be exposed publicly. --- content/media/WebVTTLoadListener.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/content/media/WebVTTLoadListener.h b/content/media/WebVTTLoadListener.h index 3795412b36e4..0584fb39da59 100644 --- a/content/media/WebVTTLoadListener.h +++ b/content/media/WebVTTLoadListener.h @@ -60,8 +60,7 @@ class WebVTTLoadListener MOZ_FINAL : public nsIStreamListener, public: WebVTTLoadListener(HTMLTrackElement* aElement); ~WebVTTLoadListener(); - void OnParsedCue(webvtt_cue* aCue); - int OnReportError(uint32_t aLine, uint32_t aCol, webvtt_error aError); + // Loads the libwebvtt parser. Must call this function in order to the // WebVTTLoadListener to be ready to accept data. nsresult LoadResource(); @@ -74,6 +73,9 @@ private: nsRefPtr mElement; nsAutoRef mParser; + void OnParsedCue(webvtt_cue* aCue); + int OnReportError(uint32_t aLine, uint32_t aCol, webvtt_error aError); + static void WEBVTT_CALLBACK OnParsedCueWebVTTCallBack(void* aUserData, webvtt_cue* aCue); static int WEBVTT_CALLBACK OnReportErrorWebVTTCallBack(void* aUserData,