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

Unified Diff: media/filters/chunk_demuxer_factory.cc

Issue 9860027: Remove DemuxerFactory and URL parameter from Pipeline. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src
Patch Set: again Created 8 years, 9 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/filters/chunk_demuxer_factory.h ('k') | media/filters/chunk_demuxer_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/filters/chunk_demuxer_factory.cc
diff --git a/media/filters/chunk_demuxer_factory.cc b/media/filters/chunk_demuxer_factory.cc
deleted file mode 100644
index 8455d58d10430050f32d6609a04e9ac3501cf90a..0000000000000000000000000000000000000000
--- a/media/filters/chunk_demuxer_factory.cc
+++ /dev/null
@@ -1,38 +0,0 @@
-// Copyright (c) 2012 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 "media/filters/chunk_demuxer_factory.h"
-
-#include "base/bind.h"
-#include "base/message_loop.h"
-#include "media/filters/chunk_demuxer.h"
-
-namespace media {
-
-static void InitDone(MessageLoop* message_loop,
- const DemuxerFactory::BuildCallback& cb,
- scoped_refptr<Demuxer> demuxer,
- PipelineStatus status) {
- if (status != PIPELINE_OK)
- demuxer = NULL;
- message_loop->PostTask(FROM_HERE, base::Bind(cb, status, demuxer));
-}
-
-ChunkDemuxerFactory::ChunkDemuxerFactory(ChunkDemuxerClient* client)
- : client_(client) {
- DCHECK(client_);
-}
-
-ChunkDemuxerFactory::~ChunkDemuxerFactory() {}
-
-void ChunkDemuxerFactory::Build(const std::string& url,
- const BuildCallback& cb) {
- scoped_refptr<ChunkDemuxer> demuxer(new ChunkDemuxer(client_));
-
- // Call Init() on demuxer. Note that ownership is being passed to the
- // callback here.
- demuxer->Init(base::Bind(&InitDone, MessageLoop::current(), cb, demuxer));
-}
-
-} // namespace media
« no previous file with comments | « media/filters/chunk_demuxer_factory.h ('k') | media/filters/chunk_demuxer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698