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

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

Issue 2721113002: getUserMedia: handle the device starting status report. (Closed)
Patch Set: address nits Created 3 years, 9 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
« no previous file with comments | « content/common/media/video_capture.h ('k') | content/renderer/media/media_stream_dispatcher.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 <memory> 10 #include <memory>
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 const url::Origin& security_origin); 65 const url::Origin& security_origin);
66 66
67 // Cancel the request to open a device. 67 // Cancel the request to open a device.
68 virtual void CancelOpenDevice( 68 virtual void CancelOpenDevice(
69 int request_id, 69 int request_id,
70 const base::WeakPtr<MediaStreamDispatcherEventHandler>& event_handler); 70 const base::WeakPtr<MediaStreamDispatcherEventHandler>& event_handler);
71 71
72 // Close a started device. |label| is provided in OnDeviceOpened. 72 // Close a started device. |label| is provided in OnDeviceOpened.
73 void CloseDevice(const std::string& label); 73 void CloseDevice(const std::string& label);
74 74
75 // This method is called when the stream is started successfully.
76 void OnStreamStarted(const std::string& label);
77
75 // Check if the label is a valid stream. 78 // Check if the label is a valid stream.
76 virtual bool IsStream(const std::string& label); 79 virtual bool IsStream(const std::string& label);
77 // Get the video session_id given a label. The label identifies a stream. 80 // Get the video session_id given a label. The label identifies a stream.
78 // index is the index in the video_device_array of the stream. 81 // index is the index in the video_device_array of the stream.
79 virtual int video_session_id(const std::string& label, int index); 82 virtual int video_session_id(const std::string& label, int index);
80 // Returns an audio session_id given a label and an index. 83 // Returns an audio session_id given a label and an index.
81 virtual int audio_session_id(const std::string& label, int index); 84 virtual int audio_session_id(const std::string& label, int index);
82 85
83 protected: 86 protected:
84 int GetNextIpcIdForTest() { return next_ipc_id_; } 87 int GetNextIpcIdForTest() { return next_ipc_id_; }
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 // been canceled. 130 // been canceled.
128 typedef std::list<Request> RequestList; 131 typedef std::list<Request> RequestList;
129 RequestList requests_; 132 RequestList requests_;
130 133
131 DISALLOW_COPY_AND_ASSIGN(MediaStreamDispatcher); 134 DISALLOW_COPY_AND_ASSIGN(MediaStreamDispatcher);
132 }; 135 };
133 136
134 } // namespace content 137 } // namespace content
135 138
136 #endif // CONTENT_RENDERER_MEDIA_MEDIA_STREAM_DISPATCHER_H_ 139 #endif // CONTENT_RENDERER_MEDIA_MEDIA_STREAM_DISPATCHER_H_
OLDNEW
« no previous file with comments | « content/common/media/video_capture.h ('k') | content/renderer/media/media_stream_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698