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

Side by Side Diff: content/renderer/media/media_stream_audio_track.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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_RENDERER_MEDIA_MEDIA_STREAM_AUDIO_TRACK_H_ 5 #ifndef CONTENT_RENDERER_MEDIA_MEDIA_STREAM_AUDIO_TRACK_H_
6 #define CONTENT_RENDERER_MEDIA_MEDIA_STREAM_AUDIO_TRACK_H_ 6 #define CONTENT_RENDERER_MEDIA_MEDIA_STREAM_AUDIO_TRACK_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/atomicops.h" 10 #include "base/atomicops.h"
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 // to the complexity of all types of audio tracks+source implementations. 58 // to the complexity of all types of audio tracks+source implementations.
59 // http://crbug.com/577874 59 // http://crbug.com/577874
60 media::AudioParameters GetOutputFormat() const; 60 media::AudioParameters GetOutputFormat() const;
61 61
62 // Halts the flow of audio data from the source (and to the sinks), and then 62 // Halts the flow of audio data from the source (and to the sinks), and then
63 // notifies all sinks of the "ended" state. 63 // notifies all sinks of the "ended" state.
64 void Stop() final; 64 void Stop() final;
65 65
66 // MediaStreamTrack override. 66 // MediaStreamTrack override.
67 void SetEnabled(bool enabled) override; 67 void SetEnabled(bool enabled) override;
68 void SetContentHint(
69 blink::WebMediaStreamTrack::ContentHintType content_hint) override;
68 70
69 // Returns a unique class identifier. Some subclasses override and use this 71 // Returns a unique class identifier. Some subclasses override and use this
70 // method to provide safe down-casting to their type. 72 // method to provide safe down-casting to their type.
71 virtual void* GetClassIdentifier() const; 73 virtual void* GetClassIdentifier() const;
72 74
73 private: 75 private:
74 friend class MediaStreamAudioSource; 76 friend class MediaStreamAudioSource;
75 friend class MediaStreamAudioDeliverer<MediaStreamAudioTrack>; 77 friend class MediaStreamAudioDeliverer<MediaStreamAudioTrack>;
76 78
77 // Called by MediaStreamAudioSource to notify this track that the flow of 79 // Called by MediaStreamAudioSource to notify this track that the flow of
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 113
112 // Provides weak pointers that are valid until Stop() is called. 114 // Provides weak pointers that are valid until Stop() is called.
113 base::WeakPtrFactory<MediaStreamAudioTrack> weak_factory_; 115 base::WeakPtrFactory<MediaStreamAudioTrack> weak_factory_;
114 116
115 DISALLOW_COPY_AND_ASSIGN(MediaStreamAudioTrack); 117 DISALLOW_COPY_AND_ASSIGN(MediaStreamAudioTrack);
116 }; 118 };
117 119
118 } // namespace content 120 } // namespace content
119 121
120 #endif // CONTENT_RENDERER_MEDIA_MEDIA_STREAM_AUDIO_TRACK_H_ 122 #endif // CONTENT_RENDERER_MEDIA_MEDIA_STREAM_AUDIO_TRACK_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698