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

Unified Diff: services/media/factory_service/audio_track_controller.cc

Issue 2069873003: Motown: Define MediaRenderer and make it the way we identify renderers. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Fix build break...audio_track_controller.* gone for good. Created 4 years, 6 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
Index: services/media/factory_service/audio_track_controller.cc
diff --git a/services/media/factory_service/audio_track_controller.cc b/services/media/factory_service/audio_track_controller.cc
deleted file mode 100644
index 5d557c8d2df0b78b5de6b7402254dc35933d5155..0000000000000000000000000000000000000000
--- a/services/media/factory_service/audio_track_controller.cc
+++ /dev/null
@@ -1,56 +0,0 @@
-// Copyright 2016 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include <list>
-
-#include "base/bind_helpers.h"
-#include "base/logging.h"
-#include "mojo/public/cpp/application/connect.h"
-#include "mojo/services/media/audio/interfaces/audio_server.mojom.h"
-#include "mojo/services/media/audio/interfaces/audio_track.mojom.h"
-#include "services/media/factory_service/audio_track_controller.h"
-#include "services/media/framework_mojo/mojo_type_conversions.h"
-
-namespace mojo {
-namespace media {
-
-AudioTrackController::AudioTrackController(const String& url, Shell* shell) {
- // TODO(dalesat): Handle connection errors.
- DCHECK(shell);
-
- AudioServerPtr audio_server;
- ConnectToService(shell, url, GetProxy(&audio_server));
- audio_server->CreateTrack(GetProxy(&audio_track_));
-}
-
-AudioTrackController::~AudioTrackController() {}
-
-void AudioTrackController::GetSupportedMediaTypes(
- const GetSupportedMediaTypesCallback& callback) {
- // Query the track's format capabilities.
- audio_track_->Describe([this, callback](AudioTrackDescriptorPtr descriptor) {
- callback(descriptor->supported_media_types.To<std::unique_ptr<
- std::vector<std::unique_ptr<media::StreamTypeSet>>>>());
- });
-}
-
-void AudioTrackController::Configure(
- const std::unique_ptr<StreamType>& stream_type,
- const ConfigureCallback& callback) {
- AudioTrackConfigurationPtr config = AudioTrackConfiguration::New();
- config->media_type = MediaType::From(stream_type);
-
- MediaConsumerPtr consumer;
- audio_track_->Configure(config.Pass(), GetProxy(&consumer));
-
- callback(consumer.Pass());
-}
-
-void AudioTrackController::GetTimelineControlSite(
- InterfaceRequest<MediaTimelineControlSite> req) {
- audio_track_->GetTimelineControlSite(req.Pass());
-}
-
-} // namespace media
-} // namespace mojo
« no previous file with comments | « services/media/factory_service/audio_track_controller.h ('k') | services/media/factory_service/factory_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698