| 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 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |