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

Unified Diff: chrome/browser/extensions/api/webrtc_audio_private/webrtc_audio_private_api.h

Issue 2784563003: WebRTC Audio private API: removing WebRtcAudioPrivate(Set/Get)ActiveSinkFunction (Closed)
Patch Set: updated api version Created 3 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/extensions/api/webrtc_audio_private/webrtc_audio_private_api.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/api/webrtc_audio_private/webrtc_audio_private_api.h
diff --git a/chrome/browser/extensions/api/webrtc_audio_private/webrtc_audio_private_api.h b/chrome/browser/extensions/api/webrtc_audio_private/webrtc_audio_private_api.h
index 279c20238f61962b88b35a2567ee16454a755a6c..af78e3c81b5d471695a92c90eda6db55611e0a82 100644
--- a/chrome/browser/extensions/api/webrtc_audio_private/webrtc_audio_private_api.h
+++ b/chrome/browser/extensions/api/webrtc_audio_private/webrtc_audio_private_api.h
@@ -63,19 +63,6 @@ class WebrtcAudioPrivateFunction : public ChromeAsyncExtensionFunction {
virtual void OnOutputDeviceDescriptions(
std::unique_ptr<media::AudioDeviceDescriptions> device_descriptions);
- // Retrieve the list of AudioOutputController objects. Calls back
- // via OnControllerList.
- //
- // Returns false on error, in which case it has set |error_| and the
- // entire function should fail.
- //
- // Call from any thread. Callback will occur on originating thread.
- bool GetControllerList(const api::webrtc_audio_private::RequestInfo& request);
-
- // Must override this if you call GetControllerList.
- virtual void OnControllerList(
- const content::RenderProcessHost::AudioOutputControllerList& list);
-
// Calculates a single HMAC. Call from any thread. Calls back via
// OnHMACCalculated on UI thread.
//
@@ -132,55 +119,6 @@ class WebrtcAudioPrivateGetSinksFunction : public WebrtcAudioPrivateFunction {
void DoneOnUIThread();
};
-class WebrtcAudioPrivateGetActiveSinkFunction
- : public WebrtcAudioPrivateFunction {
- protected:
- ~WebrtcAudioPrivateGetActiveSinkFunction() override {}
-
- private:
- DECLARE_EXTENSION_FUNCTION("webrtcAudioPrivate.getActiveSink",
- WEBRTC_AUDIO_PRIVATE_GET_ACTIVE_SINK);
-
- bool RunAsync() override;
- void OnControllerList(
- const content::RenderProcessHost::AudioOutputControllerList& controllers)
- override;
- void OnHMACCalculated(const std::string& hmac) override;
-};
-
-class WebrtcAudioPrivateSetActiveSinkFunction
- : public WebrtcAudioPrivateFunction {
- public:
- WebrtcAudioPrivateSetActiveSinkFunction();
-
- protected:
- ~WebrtcAudioPrivateSetActiveSinkFunction() override;
-
- private:
- DECLARE_EXTENSION_FUNCTION("webrtcAudioPrivate.setActiveSink",
- WEBRTC_AUDIO_PRIVATE_SET_ACTIVE_SINK);
-
- bool RunAsync() override;
- void OnControllerList(
- const content::RenderProcessHost::AudioOutputControllerList& controllers)
- override;
- void OnOutputDeviceDescriptions(
- std::unique_ptr<media::AudioDeviceDescriptions> device_descriptions)
- override;
- void SwitchDone();
- void DoneOnUIThread();
-
- api::webrtc_audio_private::RequestInfo request_info_;
- std::string sink_id_;
-
- // Filled in by OnControllerList.
- content::RenderProcessHost::AudioOutputControllerList controllers_;
-
- // Number of sink IDs we are still waiting for. Can become greater
- // than 0 in OnControllerList, decreases on every OnSinkId call.
- size_t num_remaining_sink_ids_;
-};
-
class WebrtcAudioPrivateGetAssociatedSinkFunction
: public WebrtcAudioPrivateFunction {
public:
« no previous file with comments | « no previous file | chrome/browser/extensions/api/webrtc_audio_private/webrtc_audio_private_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698