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

Unified Diff: chromecast/browser/media/cma_message_filter_host.h

Issue 2300993003: CmaRenderer is dead. Long live MojoRenderer. (Closed)
Patch Set: update OWNERS file Created 4 years, 3 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 | « chromecast/browser/media/BUILD.gn ('k') | chromecast/browser/media/cma_message_filter_host.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromecast/browser/media/cma_message_filter_host.h
diff --git a/chromecast/browser/media/cma_message_filter_host.h b/chromecast/browser/media/cma_message_filter_host.h
deleted file mode 100644
index e499b9cfbdc98456c9091c12f96bd31697bd617d..0000000000000000000000000000000000000000
--- a/chromecast/browser/media/cma_message_filter_host.h
+++ /dev/null
@@ -1,133 +0,0 @@
-// Copyright 2014 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 CHROMECAST_BROWSER_MEDIA_CMA_MESSAGE_FILTER_HOST_H_
-#define CHROMECAST_BROWSER_MEDIA_CMA_MESSAGE_FILTER_HOST_H_
-
-#include <stddef.h>
-
-#include <map>
-
-#include "base/macros.h"
-#include "base/memory/ref_counted.h"
-#include "base/memory/shared_memory.h"
-#include "base/memory/weak_ptr.h"
-#include "chromecast/browser/media/media_pipeline_backend_factory.h"
-#include "chromecast/common/media/cma_ipc_common.h"
-#include "chromecast/media/base/media_resource_tracker.h"
-#include "chromecast/media/cma/pipeline/load_type.h"
-#include "content/public/browser/browser_message_filter.h"
-#include "content/public/browser/browser_thread.h"
-#include "media/base/buffering_state.h"
-#include "media/base/pipeline_status.h"
-
-namespace base {
-class CancelableSyncSocket;
-class SingleThreadTaskRunner;
-}
-
-namespace gfx {
-class Size;
-}
-
-namespace media {
-class AudioDecoderConfig;
-class VideoDecoderConfig;
-}
-
-namespace chromecast {
-namespace media {
-
-class MediaPipelineHost;
-
-class CmaMessageFilterHost
- : public content::BrowserMessageFilter {
- public:
- CmaMessageFilterHost(int render_process_id,
- const CreateMediaPipelineBackendCB& create_backend_cb,
- scoped_refptr<base::SingleThreadTaskRunner> task_runner,
- MediaResourceTracker* resource_tracker);
-
- // content::BrowserMessageFilter implementation:
- void OnChannelClosing() override;
- void OnDestruct() const override;
- bool OnMessageReceived(const IPC::Message& message) override;
-
- private:
- typedef std::map<int, MediaPipelineHost*> MediaPipelineMap;
-
- friend class content::BrowserThread;
- friend class base::DeleteHelper<CmaMessageFilterHost>;
- ~CmaMessageFilterHost() override;
-
- void DeleteEntries();
- MediaPipelineHost* LookupById(int media_id);
-
- // Handling of incoming IPC messages.
- void CreateMedia(int media_id, LoadType load_type);
- void DestroyMedia(int media_id);
- void SetCdm(int media_id, int render_frame_id, int cdm_id);
- void CreateAvPipe(int media_id, TrackId track_id, size_t shared_mem_size);
- void OnAvPipeSet(int media_id,
- TrackId track_id,
- base::SharedMemoryHandle foreign_memory_handle,
- std::unique_ptr<base::CancelableSyncSocket> foreign_socket);
- void AudioInitialize(int media_id,
- TrackId track_id,
- const ::media::AudioDecoderConfig& config);
- void VideoInitialize(
- int media_id,
- TrackId track_id,
- const std::vector<::media::VideoDecoderConfig>& configs);
- void StartPlayingFrom(int media_id, base::TimeDelta time);
- void Flush(int media_id);
- void Stop(int media_id);
- void SetPlaybackRate(int media_id, double playback_rate);
- void SetVolume(int media_id, TrackId track_id, float volume);
- void NotifyPipeWrite(int media_id, TrackId track_id);
-
- // Audio/Video callbacks.
- void OnFlushDone(int media_id);
- void OnTrackStateChanged(int media_id,
- TrackId track_id,
- ::media::PipelineStatus status);
- void OnPipeReadActivity(int media_id, TrackId track_id);
- void OnTimeUpdate(int media_id,
- base::TimeDelta media_time,
- base::TimeDelta max_media_time,
- base::TimeTicks stc);
- void OnBufferingNotification(int media_id, ::media::BufferingState state);
- void OnWaitForKey(int media_id, TrackId track_id);
- void OnEos(int media_id, TrackId track_id);
- void OnPlaybackError(int media_id, TrackId track_id,
- ::media::PipelineStatus status);
- void OnStatisticsUpdated(int media_id,
- TrackId track_id,
- const ::media::PipelineStatistics& stats);
- void OnNaturalSizeChanged(int media_id,
- TrackId track_id,
- const gfx::Size& size);
-
- // Render process ID correponding to this message filter.
- const int process_id_;
-
- // Factory function for media pipeline backend.
- CreateMediaPipelineBackendCB create_backend_cb_;
-
- // List of media pipeline and message loop media pipelines are running on.
- MediaPipelineMap media_pipelines_;
- scoped_refptr<base::SingleThreadTaskRunner> task_runner_;
-
- MediaResourceTracker* resource_tracker_;
-
- base::WeakPtr<CmaMessageFilterHost> weak_this_;
- base::WeakPtrFactory<CmaMessageFilterHost> weak_factory_;
-
- DISALLOW_COPY_AND_ASSIGN(CmaMessageFilterHost);
-};
-
-} // namespace media
-} // namespace chromecast
-
-#endif // CHROMECAST_BROWSER_MEDIA_CMA_MESSAGE_FILTER_HOST_H_
« no previous file with comments | « chromecast/browser/media/BUILD.gn ('k') | chromecast/browser/media/cma_message_filter_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698