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

Side by Side Diff: third_party/WebKit/Source/platform/mediastream/MediaStreamCenter.cpp

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 /* 1 /*
2 * Copyright (C) 2011 Ericsson AB. All rights reserved. 2 * Copyright (C) 2011 Ericsson AB. All rights reserved.
3 * Copyright (C) 2012 Google Inc. All rights reserved. 3 * Copyright (C) 2012 Google Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 8 *
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 WebMediaStream webStream(stream); 109 WebMediaStream webStream(stream);
110 m_private->didCreateMediaStream(webStream); 110 m_private->didCreateMediaStream(webStream);
111 } 111 }
112 } 112 }
113 113
114 void MediaStreamCenter::didCreateMediaStreamTrack(MediaStreamComponent* track) { 114 void MediaStreamCenter::didCreateMediaStreamTrack(MediaStreamComponent* track) {
115 if (m_private) 115 if (m_private)
116 m_private->didCreateMediaStreamTrack(track); 116 m_private->didCreateMediaStreamTrack(track);
117 } 117 }
118 118
119 void MediaStreamCenter::didSetContentHint(MediaStreamComponent* track) {
120 if (m_private)
121 m_private->didSetContentHint(track);
122 }
123
119 std::unique_ptr<AudioSourceProvider> 124 std::unique_ptr<AudioSourceProvider>
120 MediaStreamCenter::createWebAudioSourceFromMediaStreamTrack( 125 MediaStreamCenter::createWebAudioSourceFromMediaStreamTrack(
121 MediaStreamComponent* track) { 126 MediaStreamComponent* track) {
122 DCHECK(track); 127 DCHECK(track);
123 if (m_private) { 128 if (m_private) {
124 return MediaStreamWebAudioSource::create(WTF::wrapUnique( 129 return MediaStreamWebAudioSource::create(WTF::wrapUnique(
125 m_private->createWebAudioSourceFromMediaStreamTrack(track))); 130 m_private->createWebAudioSourceFromMediaStreamTrack(track)));
126 } 131 }
127 132
128 return nullptr; 133 return nullptr;
129 } 134 }
130 135
131 void MediaStreamCenter::stopLocalMediaStream(const WebMediaStream& webStream) { 136 void MediaStreamCenter::stopLocalMediaStream(const WebMediaStream& webStream) {
132 MediaStreamDescriptor* stream = webStream; 137 MediaStreamDescriptor* stream = webStream;
133 MediaStreamDescriptorClient* client = stream->client(); 138 MediaStreamDescriptorClient* client = stream->client();
134 if (client) 139 if (client)
135 client->streamEnded(); 140 client->streamEnded();
136 } 141 }
137 142
138 } // namespace blink 143 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698