Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1000)

Unified Diff: media/base/media_observer.h

Issue 2389473002: Media Remoting: Add RemotingController. (Closed)
Patch Set: Fix bug on Android. Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: media/base/media_observer.h
diff --git a/media/base/media_observer.h b/media/base/media_observer.h
new file mode 100644
index 0000000000000000000000000000000000000000..b2d7a18ac1c09acc53b3de2b3d375e7981313cb6
--- /dev/null
+++ b/media/base/media_observer.h
@@ -0,0 +1,34 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef MEDIA_BASE_MEDIA_OBSERVER_H_
+#define MEDIA_BASE_MEDIA_OBSERVER_H_
+
+#include "base/callback.h"
xhwang 2016/10/04 06:30:29 nit: not needed?
xjz 2016/10/04 19:21:29 Done.
+#include "media/base/cdm_context.h"
+#include "media/base/pipeline_metadata.h"
+
+namespace media {
+
+// This class is an observer of media player events.
+class MEDIA_EXPORT MediaObserver {
+ public:
+ MediaObserver();
+ virtual ~MediaObserver();
+
+ // Called when the media element or its ancestor is entered/exited fullscreen.
+ virtual void OnEnteredFullscreen() = 0;
+ virtual void OnExitedFullscreen() = 0;
+
+ // Called when CDM is attached to the media element. The |cdm_context| is
+ // only guaranteed to be valid in this call.
+ virtual void OnSetCdm(CdmContext* cdm_context) = 0;
+
+ // Called after demuxer is initialized.
+ virtual void OnMetadata(const PipelineMetadata& metadata) = 0;
+};
+
+} // namespace media
+
+#endif // MEDIA_BASE_MEDIA_OBSERVER_H_

Powered by Google App Engine
This is Rietveld 408576698