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

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

Issue 10912004: Begin adding support for tab mirroring via the MediaStream audio/video capturing (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Renamed MEDIA_USER_*_CAPTURE to MEDIA_*_DEVICE_CAPTURE, as suggested by wjia@. Created 8 years, 3 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 | Annotate | Revision Log
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_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
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_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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698