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

Side by Side Diff: third_party/WebKit/public/platform/WebMediaStreamSource.h

Issue 2956063003: Add support for echoCancellation and deviceId to MediaStreamTrack.getSettings (Closed)
Patch Set: fix DCHECK Created 3 years, 5 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 BLINK_PLATFORM_EXPORT void SetReadyState(ReadyState); 104 BLINK_PLATFORM_EXPORT void SetReadyState(ReadyState);
105 BLINK_PLATFORM_EXPORT ReadyState GetReadyState() const; 105 BLINK_PLATFORM_EXPORT ReadyState GetReadyState() const;
106 106
107 // Extra data associated with this object. 107 // Extra data associated with this object.
108 // If non-null, the extra data pointer will be deleted when the object is 108 // If non-null, the extra data pointer will be deleted when the object is
109 // destroyed. Setting the extra data pointer will cause any existing non-null 109 // destroyed. Setting the extra data pointer will cause any existing non-null
110 // extra data pointer to be deleted. 110 // extra data pointer to be deleted.
111 BLINK_PLATFORM_EXPORT ExtraData* GetExtraData() const; 111 BLINK_PLATFORM_EXPORT ExtraData* GetExtraData() const;
112 BLINK_PLATFORM_EXPORT void SetExtraData(ExtraData*); 112 BLINK_PLATFORM_EXPORT void SetExtraData(ExtraData*);
113 113
114 BLINK_PLATFORM_EXPORT void SetEchoCancellation(bool echo_cancellation);
115
114 BLINK_PLATFORM_EXPORT WebMediaConstraints Constraints(); 116 BLINK_PLATFORM_EXPORT WebMediaConstraints Constraints();
115 117
116 // Only used if if this is a WebAudio source. 118 // Only used if if this is a WebAudio source.
117 // The WebAudioDestinationConsumer is not owned, and has to be disposed of 119 // The WebAudioDestinationConsumer is not owned, and has to be disposed of
118 // separately after calling removeAudioConsumer. 120 // separately after calling removeAudioConsumer.
119 BLINK_PLATFORM_EXPORT bool RequiresAudioConsumer() const; 121 BLINK_PLATFORM_EXPORT bool RequiresAudioConsumer() const;
120 BLINK_PLATFORM_EXPORT void AddAudioConsumer(WebAudioDestinationConsumer*); 122 BLINK_PLATFORM_EXPORT void AddAudioConsumer(WebAudioDestinationConsumer*);
121 BLINK_PLATFORM_EXPORT bool RemoveAudioConsumer(WebAudioDestinationConsumer*); 123 BLINK_PLATFORM_EXPORT bool RemoveAudioConsumer(WebAudioDestinationConsumer*);
122 124
123 #if INSIDE_BLINK 125 #if INSIDE_BLINK
124 BLINK_PLATFORM_EXPORT WebMediaStreamSource(MediaStreamSource*); 126 BLINK_PLATFORM_EXPORT WebMediaStreamSource(MediaStreamSource*);
125 BLINK_PLATFORM_EXPORT WebMediaStreamSource& operator=(MediaStreamSource*); 127 BLINK_PLATFORM_EXPORT WebMediaStreamSource& operator=(MediaStreamSource*);
126 BLINK_PLATFORM_EXPORT operator WTF::PassRefPtr<MediaStreamSource>() const; 128 BLINK_PLATFORM_EXPORT operator WTF::PassRefPtr<MediaStreamSource>() const;
127 BLINK_PLATFORM_EXPORT operator MediaStreamSource*() const; 129 BLINK_PLATFORM_EXPORT operator MediaStreamSource*() const;
128 #endif 130 #endif
129 131
130 private: 132 private:
131 WebPrivatePtr<MediaStreamSource> private_; 133 WebPrivatePtr<MediaStreamSource> private_;
132 }; 134 };
133 135
134 } // namespace blink 136 } // namespace blink
135 137
136 #endif // WebMediaStreamSource_h 138 #endif // WebMediaStreamSource_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698