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

Unified Diff: content/renderer/media/audio_message_filter.h

Issue 1142063003: content/child: Remove use of MessageLoopProxy and deprecated MessageLoop APIs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Build fix. Created 5 years, 7 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: content/renderer/media/audio_message_filter.h
diff --git a/content/renderer/media/audio_message_filter.h b/content/renderer/media/audio_message_filter.h
index 2404ca0b02676aeec0e0dc6cd3f2ea5d8ed1745e..36ec380f8db91f4bfdfd5bf6e768ce1d9fa4b425 100644
--- a/content/renderer/media/audio_message_filter.h
+++ b/content/renderer/media/audio_message_filter.h
@@ -17,7 +17,7 @@
#include "media/base/audio_hardware_config.h"
namespace base {
-class MessageLoopProxy;
+class SingleThreadTaskRunner;
}
namespace content {
@@ -29,7 +29,7 @@ namespace content {
class CONTENT_EXPORT AudioMessageFilter : public IPC::MessageFilter {
public:
explicit AudioMessageFilter(
- const scoped_refptr<base::MessageLoopProxy>& io_message_loop);
+ scoped_refptr<base::SingleThreadTaskRunner> io_task_runner);
// Getter for the one AudioMessageFilter object.
static AudioMessageFilter* Get();
@@ -38,12 +38,12 @@ class CONTENT_EXPORT AudioMessageFilter : public IPC::MessageFilter {
// the RenderFrame containing the entity producing the audio.
//
// The returned object is not thread-safe, and must be used on
- // |io_message_loop|.
+ // |io_task_runner|.
scoped_ptr<media::AudioOutputIPC> CreateAudioOutputIPC(int render_frame_id);
- // IO message loop associated with this message filter.
- scoped_refptr<base::MessageLoopProxy> io_message_loop() const {
- return io_message_loop_;
+ // IO task runner associated with this message filter.
+ base::SingleThreadTaskRunner* io_task_runner() const {
+ return io_task_runner_.get();
}
protected:
@@ -60,7 +60,7 @@ class CONTENT_EXPORT AudioMessageFilter : public IPC::MessageFilter {
// Sends an IPC message using |sender_|.
void Send(IPC::Message* message);
- // IPC::MessageFilter override. Called on |io_message_loop|.
+ // IPC::MessageFilter override. Called on |io_task_runner_|.
bool OnMessageReceived(const IPC::Message& message) override;
void OnFilterAdded(IPC::Sender* sender) override;
void OnFilterRemoved() override;
@@ -76,15 +76,15 @@ class CONTENT_EXPORT AudioMessageFilter : public IPC::MessageFilter {
void OnStreamStateChanged(int stream_id,
media::AudioOutputIPCDelegate::State state);
- // IPC sender for Send(); must only be accesed on |io_message_loop_|.
+ // IPC sender for Send(); must only be accesed on |io_task_runner_|.
IPC::Sender* sender_;
// A map of stream ids to delegates; must only be accessed on
- // |io_message_loop_|.
+ // |io_task_runner_|.
IDMap<media::AudioOutputIPCDelegate> delegates_;
- // Message loop on which IPC calls are driven.
- const scoped_refptr<base::MessageLoopProxy> io_message_loop_;
+ // Task runner on which IPC calls are executed.
+ const scoped_refptr<base::SingleThreadTaskRunner> io_task_runner_;
// The singleton instance for this filter.
static AudioMessageFilter* g_filter;
« no previous file with comments | « content/renderer/media/audio_input_message_filter.cc ('k') | content/renderer/media/audio_message_filter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698