Index: content/renderer/media/android/stream_texture_factory.h |
diff --git a/content/renderer/media/android/stream_texture_factory.h b/content/renderer/media/android/stream_texture_factory.h |
index 70d31e9391a8c2ac760ae5b2559866f30869093f..26d0a064c2b30d7f6078305d6e5160b444ed35b7 100644 |
--- a/content/renderer/media/android/stream_texture_factory.h |
+++ b/content/renderer/media/android/stream_texture_factory.h |
@@ -44,6 +44,12 @@ class StreamTextureProxy { |
typedef scoped_ptr<StreamTextureProxy, StreamTextureProxy::Deleter> |
ScopedStreamTextureProxy; |
+class StreamTextureFactoryContextObserver { |
+ public: |
+ ~StreamTextureFactoryContextObserver() {} |
+ virtual void ResetStreamTextureProxy() = 0; |
+}; |
+ |
// Factory class for managing stream textures. |
class StreamTextureFactory : public base::RefCounted<StreamTextureFactory> { |
public: |
@@ -69,6 +75,9 @@ class StreamTextureFactory : public base::RefCounted<StreamTextureFactory> { |
virtual gpu::gles2::GLES2Interface* ContextGL() = 0; |
+ virtual void AddObserver(StreamTextureFactoryContextObserver* obs) = 0; |
+ virtual void RemoveObserver(StreamTextureFactoryContextObserver* obs) = 0; |
+ |
protected: |
friend class base::RefCounted<StreamTextureFactory>; |
virtual ~StreamTextureFactory() {} |