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

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

Issue 180633008: Add different error codes for getUserMedia. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed comments Created 6 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 | 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 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 // RenderViewObserver OVERRIDE. 108 // RenderViewObserver OVERRIDE.
109 virtual bool Send(IPC::Message* message) OVERRIDE; 109 virtual bool Send(IPC::Message* message) OVERRIDE;
110 110
111 // Messages from the browser. 111 // Messages from the browser.
112 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; 112 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
113 void OnStreamGenerated( 113 void OnStreamGenerated(
114 int request_id, 114 int request_id,
115 const std::string& label, 115 const std::string& label,
116 const StreamDeviceInfoArray& audio_array, 116 const StreamDeviceInfoArray& audio_array,
117 const StreamDeviceInfoArray& video_array); 117 const StreamDeviceInfoArray& video_array);
118 void OnStreamGenerationFailed(int request_id); 118 void OnStreamGenerationFailed(
119 int request_id,
120 content::MediaStreamRequestResult result);
119 void OnDeviceStopped(const std::string& label, 121 void OnDeviceStopped(const std::string& label,
120 const StreamDeviceInfo& device_info); 122 const StreamDeviceInfo& device_info);
121 void OnDevicesEnumerated( 123 void OnDevicesEnumerated(
122 int request_id, 124 int request_id,
123 const StreamDeviceInfoArray& device_array); 125 const StreamDeviceInfoArray& device_array);
124 void OnDevicesEnumerationFailed(int request_id); 126 void OnDevicesEnumerationFailed(int request_id);
125 void OnDeviceOpened( 127 void OnDeviceOpened(
126 int request_id, 128 int request_id,
127 const std::string& label, 129 const std::string& label,
128 const StreamDeviceInfo& device_info); 130 const StreamDeviceInfo& device_info);
(...skipping 10 matching lines...) Expand all
139 // been canceled. 141 // been canceled.
140 typedef std::list<Request> RequestList; 142 typedef std::list<Request> RequestList;
141 RequestList requests_; 143 RequestList requests_;
142 144
143 DISALLOW_COPY_AND_ASSIGN(MediaStreamDispatcher); 145 DISALLOW_COPY_AND_ASSIGN(MediaStreamDispatcher);
144 }; 146 };
145 147
146 } // namespace content 148 } // namespace content
147 149
148 #endif // CONTENT_RENDERER_MEDIA_MEDIA_STREAM_DISPATCHER_H_ 150 #endif // CONTENT_RENDERER_MEDIA_MEDIA_STREAM_DISPATCHER_H_
OLDNEW
« no previous file with comments | « content/renderer/media/media_stream_dependency_factory_unittest.cc ('k') | content/renderer/media/media_stream_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698