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

Unified Diff: media/base/android/media_url_demuxer.h

Issue 2230583002: Add MediaPlayerRenderer/MediaPlayerRendererClient (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added MEDIA_EXPORT. Created 4 years, 4 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 | « media/base/android/BUILD.gn ('k') | media/base/android/media_url_demuxer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/android/media_url_demuxer.h
diff --git a/media/base/android/media_url_demuxer.h b/media/base/android/media_url_demuxer.h
deleted file mode 100644
index dbd8ee6026fc862724f30e5924d1c6640484f795..0000000000000000000000000000000000000000
--- a/media/base/android/media_url_demuxer.h
+++ /dev/null
@@ -1,68 +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.
-
-#ifndef MEDIA_BASE_ANDROID_MEDIA_URL_DEMUXER_H_
-#define MEDIA_BASE_ANDROID_MEDIA_URL_DEMUXER_H_
-
-#include <stddef.h>
-
-#include "base/callback.h"
-#include "base/macros.h"
-#include "base/memory/weak_ptr.h"
-#include "media/base/demuxer.h"
-#include "url/gurl.h"
-
-namespace media {
-
-// Class that saves a URL for later retrieval. To be used in conjunction with
-// the MediaPlayerRenderer.
-//
-// Its primary purpose is to act as a dummy Demuxer, when there is no need
-// for DemuxerStreams (e.g. in the MediaPlayerRenderer case). For the most part,
-// its implementation of the Demuxer are NOPs that return the default values and
-// fire any provided callbacks immediately.
-//
-// If Pipeline where to be refactored to use a DemuxerStreamProvider instead of
-// a Demuxer, MediaUrlDemuxer should be refactored to inherit directly from
-// DemuxerStreamProvider.
-class MediaUrlDemuxer : public Demuxer {
- public:
- MediaUrlDemuxer(
- const scoped_refptr<base::SingleThreadTaskRunner>& task_runner,
- const GURL& url);
- ~MediaUrlDemuxer() override;
-
- // DemuxerStreamProvider interface.
- DemuxerStream* GetStream(DemuxerStream::Type type) override;
- GURL GetUrl() const override;
- DemuxerStreamProvider::Type GetType() const override;
-
- // Demuxer interface.
- std::string GetDisplayName() const override;
- void Initialize(DemuxerHost* host,
- const PipelineStatusCB& status_cb,
- bool enable_text_tracks) override;
- void StartWaitingForSeek(base::TimeDelta seek_time) override;
- void CancelPendingSeek(base::TimeDelta seek_time) override;
- void Seek(base::TimeDelta time, const PipelineStatusCB& status_cb) override;
- void Stop() override;
- base::TimeDelta GetStartTime() const override;
- base::Time GetTimelineOffset() const override;
- int64_t GetMemoryUsage() const override;
- void OnEnabledAudioTracksChanged(const std::vector<MediaTrack::Id>& track_ids,
- base::TimeDelta currTime) override;
- void OnSelectedVideoTrackChanged(const std::vector<MediaTrack::Id>& track_ids,
- base::TimeDelta currTime) override;
-
- private:
- GURL url_;
-
- scoped_refptr<base::SingleThreadTaskRunner> task_runner_;
-
- DISALLOW_COPY_AND_ASSIGN(MediaUrlDemuxer);
-};
-
-} // namespace media
-
-#endif // MEDIA_BASE_ANDROID_MEDIA_URL_DEMUXER_H_
« no previous file with comments | « media/base/android/BUILD.gn ('k') | media/base/android/media_url_demuxer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698