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

Side by Side Diff: content/renderer/media/audio_input_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_INPUT_MESSAGE_FILTER_H_ 5 #ifndef CONTENT_RENDERER_MEDIA_AUDIO_INPUT_MESSAGE_FILTER_H_
6 #define CONTENT_RENDERER_MEDIA_AUDIO_INPUT_MESSAGE_FILTER_H_ 6 #define CONTENT_RENDERER_MEDIA_AUDIO_INPUT_MESSAGE_FILTER_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 77
78 // Notification of volume property of an audio input stream. 78 // Notification of volume property of an audio input stream.
79 void OnStreamVolume(int stream_id, double volume); 79 void OnStreamVolume(int stream_id, double volume);
80 80
81 // Received when internal state of browser process' audio input stream has 81 // Received when internal state of browser process' audio input stream has
82 // changed. 82 // changed.
83 void OnStreamStateChanged(int stream_id, 83 void OnStreamStateChanged(int stream_id,
84 media::AudioInputIPCDelegateState state); 84 media::AudioInputIPCDelegateState state);
85 85
86 // A map of stream ids to delegates. 86 // A map of stream ids to delegates.
87 IDMap<media::AudioInputIPCDelegate> delegates_; 87 IDMap<media::AudioInputIPCDelegate*> delegates_;
88 88
89 // IPC sender for Send(), must only be accesed on |io_task_runner_|. 89 // IPC sender for Send(), must only be accesed on |io_task_runner_|.
90 IPC::Sender* sender_; 90 IPC::Sender* sender_;
91 91
92 // Task runner on which IPC calls are executed. 92 // Task runner on which IPC calls are executed.
93 const scoped_refptr<base::SingleThreadTaskRunner> io_task_runner_; 93 const scoped_refptr<base::SingleThreadTaskRunner> io_task_runner_;
94 94
95 // The singleton instance for this filter. 95 // The singleton instance for this filter.
96 static AudioInputMessageFilter* g_filter; 96 static AudioInputMessageFilter* g_filter;
97 97
98 DISALLOW_COPY_AND_ASSIGN(AudioInputMessageFilter); 98 DISALLOW_COPY_AND_ASSIGN(AudioInputMessageFilter);
99 }; 99 };
100 100
101 } // namespace content 101 } // namespace content
102 102
103 #endif // CONTENT_RENDERER_MEDIA_AUDIO_INPUT_MESSAGE_FILTER_H_ 103 #endif // CONTENT_RENDERER_MEDIA_AUDIO_INPUT_MESSAGE_FILTER_H_
OLDNEW
« no previous file with comments | « content/renderer/java/gin_java_bridge_dispatcher.h ('k') | content/renderer/media/audio_input_message_filter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698