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

Side by Side Diff: media/base/media_observer.h

Issue 2389473002: Media Remoting: Add RemotingController. (Closed)
Patch Set: Rebased. 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 unified diff | Download patch
« no previous file with comments | « media/base/BUILD.gn ('k') | media/base/media_observer.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef MEDIA_BASE_MEDIA_OBSERVER_H_
6 #define MEDIA_BASE_MEDIA_OBSERVER_H_
7
8 #include "media/base/cdm_context.h"
9 #include "media/base/pipeline_metadata.h"
10
11 namespace media {
12
13 // This class is an observer of media player events.
14 class MEDIA_EXPORT MediaObserver {
15 public:
16 MediaObserver();
17 virtual ~MediaObserver();
18
19 // Called when the media element entered/exited fullscreen.
20 virtual void OnEnteredFullscreen() = 0;
21 virtual void OnExitedFullscreen() = 0;
22
23 // Called when CDM is attached to the media element. The |cdm_context| is
24 // only guaranteed to be valid in this call.
25 virtual void OnSetCdm(CdmContext* cdm_context) = 0;
26
27 // Called after demuxer is initialized.
28 virtual void OnMetadataChanged(const PipelineMetadata& metadata) = 0;
29 };
30
31 } // namespace media
32
33 #endif // MEDIA_BASE_MEDIA_OBSERVER_H_
OLDNEW
« no previous file with comments | « media/base/BUILD.gn ('k') | media/base/media_observer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698