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

Side by Side Diff: content/renderer/media/audio_message_filter.h

Issue 2496653002: Part 2 of base::IDMap refactor to eliminate IDMapOwnPointer/IDMapExternalPointer modes (Closed)
Patch Set: typedefs => using statements, update comments in base/id_map.h Created 4 years 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_MEDIA_AUDIO_MESSAGE_FILTER_H_ 5 #ifndef CONTENT_RENDERER_MEDIA_AUDIO_MESSAGE_FILTER_H_
6 #define CONTENT_RENDERER_MEDIA_AUDIO_MESSAGE_FILTER_H_ 6 #define CONTENT_RENDERER_MEDIA_AUDIO_MESSAGE_FILTER_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 85
86 // Received when internal state of browser process' audio output device has 86 // Received when internal state of browser process' audio output device has
87 // changed. 87 // changed.
88 void OnStreamError(int stream_id); 88 void OnStreamError(int stream_id);
89 89
90 // IPC sender for Send(); must only be accessed on |io_task_runner_|. 90 // IPC sender for Send(); must only be accessed on |io_task_runner_|.
91 IPC::Sender* sender_; 91 IPC::Sender* sender_;
92 92
93 // A map of stream ids to delegates; must only be accessed on 93 // A map of stream ids to delegates; must only be accessed on
94 // |io_task_runner_|. 94 // |io_task_runner_|.
95 IDMap<media::AudioOutputIPCDelegate> delegates_; 95 IDMap<media::AudioOutputIPCDelegate*> delegates_;
96 96
97 // Task runner on which IPC calls are executed. 97 // Task runner on which IPC calls are executed.
98 const scoped_refptr<base::SingleThreadTaskRunner> io_task_runner_; 98 const scoped_refptr<base::SingleThreadTaskRunner> io_task_runner_;
99 99
100 // The singleton instance for this filter. 100 // The singleton instance for this filter.
101 static AudioMessageFilter* g_filter; 101 static AudioMessageFilter* g_filter;
102 102
103 DISALLOW_COPY_AND_ASSIGN(AudioMessageFilter); 103 DISALLOW_COPY_AND_ASSIGN(AudioMessageFilter);
104 }; 104 };
105 105
106 } // namespace content 106 } // namespace content
107 107
108 #endif // CONTENT_RENDERER_MEDIA_AUDIO_MESSAGE_FILTER_H_ 108 #endif // CONTENT_RENDERER_MEDIA_AUDIO_MESSAGE_FILTER_H_
OLDNEW
« 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