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

Unified Diff: webkit/glue/media/web_data_source.h

Issue 8570010: Moving media-related files from webkit/glue/ to webkit/media/. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src
Patch Set: minor fixes Created 9 years, 1 month 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 | « webkit/glue/media/video_renderer_impl.cc ('k') | webkit/glue/media/web_data_source.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/glue/media/web_data_source.h
diff --git a/webkit/glue/media/web_data_source.h b/webkit/glue/media/web_data_source.h
deleted file mode 100644
index c972a666f39b27ac892928905b8ed1cdd99224c8..0000000000000000000000000000000000000000
--- a/webkit/glue/media/web_data_source.h
+++ /dev/null
@@ -1,59 +0,0 @@
-// Copyright (c) 2011 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 WEBKIT_GLUE_MEDIA_WEB_DATA_SOURCE_H_
-#define WEBKIT_GLUE_MEDIA_WEB_DATA_SOURCE_H_
-
-#include "base/callback.h"
-#include "media/base/filters.h"
-#include "media/base/pipeline_status.h"
-
-namespace webkit_glue {
-
-// An interface that allows WebMediaPlayerImpl::Proxy to communicate with the
-// DataSource in the pipeline.
-class WebDataSource : public media::DataSource {
- public:
- WebDataSource();
- virtual ~WebDataSource();
-
- // Initialize this object using |url|. This object calls |callback| when
- // initialization has completed.
- virtual void Initialize(const std::string& url,
- const media::PipelineStatusCB& callback) = 0;
-
- // Called to cancel initialization. The callback passed in Initialize() will
- // be destroyed and will not be called after this method returns. Once this
- // method returns, the object will be in an uninitialized state and
- // Initialize() cannot be called again. The caller is expected to release
- // its handle to this object and never call it again.
- virtual void CancelInitialize() = 0;
-
- // Returns true if the media resource has a single origin, false otherwise.
- //
- // Method called on the render thread.
- virtual bool HasSingleOrigin() = 0;
-
- // This method is used to unblock any read calls that would cause the
- // media pipeline to stall.
- //
- // Method called on the render thread.
- virtual void Abort() = 0;
-
- private:
- DISALLOW_COPY_AND_ASSIGN(WebDataSource);
-};
-
-// Temporary hack to allow WebMediaPlayerImpl::Proxy::AddDataSource() to
-// be called when WebDataSource objects are created. This can be removed
-// once WebMediaPlayerImpl::Proxy is fixed so it doesn't have to track
-// WebDataSources. Proxy only has to track WebDataSources so it can call Abort()
-// on them at shutdown. Once cancellation is added to DataSource and pause
-// support in Demuxers cancel pending reads, Proxy shouldn't have to keep
-// a WebDataSource list or call Abort().
-typedef base::Callback<void(WebDataSource*)> WebDataSourceBuildObserverHack;
-
-} // namespace webkit_glue
-
-#endif // WEBKIT_GLUE_MEDIA_WEB_DATA_SOURCE_H_
« no previous file with comments | « webkit/glue/media/video_renderer_impl.cc ('k') | webkit/glue/media/web_data_source.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698