| OLD | NEW |
| 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_MEDIA_STREAM_DISPATCHER_H_ | 5 #ifndef CONTENT_RENDERER_MEDIA_MEDIA_STREAM_DISPATCHER_H_ |
| 6 #define CONTENT_RENDERER_MEDIA_MEDIA_STREAM_DISPATCHER_H_ | 6 #define CONTENT_RENDERER_MEDIA_MEDIA_STREAM_DISPATCHER_H_ |
| 7 | 7 |
| 8 #include <list> | 8 #include <list> |
| 9 #include <map> | 9 #include <map> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 145 const base::WeakPtr<MediaStreamDispatcherEventHandler>& event_handler, | 145 const base::WeakPtr<MediaStreamDispatcherEventHandler>& event_handler, |
| 146 EnumerationState* state); | 146 EnumerationState* state); |
| 147 | 147 |
| 148 // Used for DCHECKs so methods calls won't execute in the wrong thread. | 148 // Used for DCHECKs so methods calls won't execute in the wrong thread. |
| 149 scoped_refptr<base::MessageLoopProxy> main_loop_; | 149 scoped_refptr<base::MessageLoopProxy> main_loop_; |
| 150 | 150 |
| 151 int next_ipc_id_; | 151 int next_ipc_id_; |
| 152 typedef std::map<std::string, Stream> LabelStreamMap; | 152 typedef std::map<std::string, Stream> LabelStreamMap; |
| 153 LabelStreamMap label_stream_map_; | 153 LabelStreamMap label_stream_map_; |
| 154 | 154 |
| 155 EnumerationState audio_enumeration_state_; | 155 EnumerationState enumeration_state_[content::NUM_MEDIA_STREAM_DEVICE_TYPES]; |
| 156 EnumerationState video_enumeration_state_; | |
| 157 | 156 |
| 158 // List of calls made to GenerateStream that has not yet completed. | 157 // List of calls made to GenerateStream that has not yet completed. |
| 159 typedef std::list<Request> RequestList; | 158 typedef std::list<Request> RequestList; |
| 160 RequestList requests_; | 159 RequestList requests_; |
| 161 | 160 |
| 162 DISALLOW_COPY_AND_ASSIGN(MediaStreamDispatcher); | 161 DISALLOW_COPY_AND_ASSIGN(MediaStreamDispatcher); |
| 163 }; | 162 }; |
| 164 | 163 |
| 165 #endif // CONTENT_RENDERER_MEDIA_MEDIA_STREAM_DISPATCHER_H_ | 164 #endif // CONTENT_RENDERER_MEDIA_MEDIA_STREAM_DISPATCHER_H_ |
| OLD | NEW |