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

Side by Side Diff: content/public/renderer/media_stream_sink.h

Issue 2501623003: Implement MediaStreamTrack contentHint skeleton. (Closed)
Patch Set: ContentHint -> ContentHintType Created 4 years 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_PUBLIC_RENDERER_MEDIA_STREAM_SINK_H_ 5 #ifndef CONTENT_PUBLIC_RENDERER_MEDIA_STREAM_SINK_H_
6 #define CONTENT_PUBLIC_RENDERER_MEDIA_STREAM_SINK_H_ 6 #define CONTENT_PUBLIC_RENDERER_MEDIA_STREAM_SINK_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "content/common/content_export.h" 9 #include "content/common/content_export.h"
10 #include "third_party/WebKit/public/platform/WebMediaStreamSource.h" 10 #include "third_party/WebKit/public/platform/WebMediaStreamSource.h"
11 #include "third_party/WebKit/public/platform/WebMediaStreamTrack.h"
11 12
12 namespace content { 13 namespace content {
13 14
14 // MediaStreamSink is the base interface for MediaStreamAudioSink and 15 // MediaStreamSink is the base interface for MediaStreamAudioSink and
15 // MediaStreamVideoSink. It allows an implementation to receive notifications 16 // MediaStreamVideoSink. It allows an implementation to receive notifications
16 // about state changes on a blink::WebMediaStreamSource object or such an 17 // about state changes on a blink::WebMediaStreamSource object or such an
17 // object underlying a blink::WebMediaStreamTrack. 18 // object underlying a blink::WebMediaStreamTrack.
18 class CONTENT_EXPORT MediaStreamSink { 19 class CONTENT_EXPORT MediaStreamSink {
19 public: 20 public:
20 virtual void OnReadyStateChanged( 21 virtual void OnReadyStateChanged(
21 blink::WebMediaStreamSource::ReadyState state) {} 22 blink::WebMediaStreamSource::ReadyState state) {}
22 virtual void OnEnabledChanged(bool enabled) {} 23 virtual void OnEnabledChanged(bool enabled) {}
24 virtual void OnContentHintChanged(
25 blink::WebMediaStreamTrack::ContentHintType content_hint) {}
23 26
24 protected: 27 protected:
25 virtual ~MediaStreamSink() {} 28 virtual ~MediaStreamSink() {}
26 }; 29 };
27 30
28 } // namespace content 31 } // namespace content
29 32
30 #endif // CONTENT_PUBLIC_RENDERER_MEDIA_STREAM_SINK_H_ 33 #endif // CONTENT_PUBLIC_RENDERER_MEDIA_STREAM_SINK_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698