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

Side by Side Diff: content/renderer/pepper/pepper_platform_audio_output.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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_RENDERER_PEPPER_PEPPER_PLATFORM_AUDIO_OUTPUT_H_ 5 #ifndef CONTENT_RENDERER_PEPPER_PEPPER_PLATFORM_AUDIO_OUTPUT_H_
6 #define CONTENT_RENDERER_PEPPER_PEPPER_PLATFORM_AUDIO_OUTPUT_H_ 6 #define CONTENT_RENDERER_PEPPER_PEPPER_PLATFORM_AUDIO_OUTPUT_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
11 #include "media/audio/audio_output_ipc.h" 11 #include "media/audio/audio_output_ipc.h"
12 12
13 namespace media { 13 namespace media {
14 class AudioParameters; 14 class AudioParameters;
15 } 15 }
16 16
17 namespace base { 17 namespace base {
18 class MessageLoopProxy; 18 class MessageLoopProxy;
19 class SingleThreadTaskRunner;
19 } 20 }
20 21
21 namespace content { 22 namespace content {
22 class AudioHelper; 23 class AudioHelper;
23 24
24 class PepperPlatformAudioOutput 25 class PepperPlatformAudioOutput
25 : public media::AudioOutputIPCDelegate, 26 : public media::AudioOutputIPCDelegate,
26 public base::RefCountedThreadSafe<PepperPlatformAudioOutput> { 27 public base::RefCountedThreadSafe<PepperPlatformAudioOutput> {
27 public: 28 public:
28 // Factory function, returns NULL on failure. StreamCreated() will be called 29 // Factory function, returns NULL on failure. StreamCreated() will be called
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 75
75 // The client to notify when the stream is created. THIS MUST ONLY BE 76 // The client to notify when the stream is created. THIS MUST ONLY BE
76 // ACCESSED ON THE MAIN THREAD. 77 // ACCESSED ON THE MAIN THREAD.
77 AudioHelper* client_; 78 AudioHelper* client_;
78 79
79 // Used to send/receive IPC. THIS MUST ONLY BE ACCESSED ON THE 80 // Used to send/receive IPC. THIS MUST ONLY BE ACCESSED ON THE
80 // I/O thread except to send messages and get the message loop. 81 // I/O thread except to send messages and get the message loop.
81 scoped_ptr<media::AudioOutputIPC> ipc_; 82 scoped_ptr<media::AudioOutputIPC> ipc_;
82 83
83 scoped_refptr<base::MessageLoopProxy> main_message_loop_proxy_; 84 scoped_refptr<base::MessageLoopProxy> main_message_loop_proxy_;
84 scoped_refptr<base::MessageLoopProxy> io_message_loop_proxy_; 85 scoped_refptr<base::SingleThreadTaskRunner> io_task_runner_;
85 86
86 DISALLOW_COPY_AND_ASSIGN(PepperPlatformAudioOutput); 87 DISALLOW_COPY_AND_ASSIGN(PepperPlatformAudioOutput);
87 }; 88 };
88 89
89 } // namespace content 90 } // namespace content
90 91
91 #endif // CONTENT_RENDERER_PEPPER_PEPPER_PLATFORM_AUDIO_OUTPUT_H_ 92 #endif // CONTENT_RENDERER_PEPPER_PEPPER_PLATFORM_AUDIO_OUTPUT_H_
OLDNEW
« no previous file with comments | « content/renderer/pepper/pepper_platform_audio_input.cc ('k') | content/renderer/pepper/pepper_platform_audio_output.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698