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_BROWSER_RENDERER_HOST_MEDIA_MEDIA_STREAM_DISPATCHER_HOST_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_MEDIA_MEDIA_STREAM_DISPATCHER_HOST_H_ |
6 #define CONTENT_BROWSER_RENDERER_HOST_MEDIA_MEDIA_STREAM_DISPATCHER_HOST_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_MEDIA_MEDIA_STREAM_DISPATCHER_HOST_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 #include <utility> | 10 #include <utility> |
(...skipping 20 matching lines...) Expand all Loading... |
31 const ResourceContext::SaltCallback& salt_callback, | 31 const ResourceContext::SaltCallback& salt_callback, |
32 MediaStreamManager* media_stream_manager); | 32 MediaStreamManager* media_stream_manager); |
33 | 33 |
34 // MediaStreamRequester implementation. | 34 // MediaStreamRequester implementation. |
35 virtual void StreamGenerated( | 35 virtual void StreamGenerated( |
36 int render_view_id, | 36 int render_view_id, |
37 int page_request_id, | 37 int page_request_id, |
38 const std::string& label, | 38 const std::string& label, |
39 const StreamDeviceInfoArray& audio_devices, | 39 const StreamDeviceInfoArray& audio_devices, |
40 const StreamDeviceInfoArray& video_devices) OVERRIDE; | 40 const StreamDeviceInfoArray& video_devices) OVERRIDE; |
41 virtual void StreamGenerationFailed(int render_view_id, | 41 virtual void StreamGenerationFailed( |
42 int page_request_id) OVERRIDE; | 42 int render_view_id, |
| 43 int page_request_id, |
| 44 content::MediaStreamRequestResult result) OVERRIDE; |
43 virtual void DeviceStopped(int render_view_id, | 45 virtual void DeviceStopped(int render_view_id, |
44 const std::string& label, | 46 const std::string& label, |
45 const StreamDeviceInfo& device) OVERRIDE; | 47 const StreamDeviceInfo& device) OVERRIDE; |
46 virtual void DevicesEnumerated(int render_view_id, | 48 virtual void DevicesEnumerated(int render_view_id, |
47 int page_request_id, | 49 int page_request_id, |
48 const std::string& label, | 50 const std::string& label, |
49 const StreamDeviceInfoArray& devices) OVERRIDE; | 51 const StreamDeviceInfoArray& devices) OVERRIDE; |
50 virtual void DeviceOpened(int render_view_id, | 52 virtual void DeviceOpened(int render_view_id, |
51 int page_request_id, | 53 int page_request_id, |
52 const std::string& label, | 54 const std::string& label, |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
96 int render_process_id_; | 98 int render_process_id_; |
97 ResourceContext::SaltCallback salt_callback_; | 99 ResourceContext::SaltCallback salt_callback_; |
98 MediaStreamManager* media_stream_manager_; | 100 MediaStreamManager* media_stream_manager_; |
99 | 101 |
100 DISALLOW_COPY_AND_ASSIGN(MediaStreamDispatcherHost); | 102 DISALLOW_COPY_AND_ASSIGN(MediaStreamDispatcherHost); |
101 }; | 103 }; |
102 | 104 |
103 } // namespace content | 105 } // namespace content |
104 | 106 |
105 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_MEDIA_STREAM_DISPATCHER_HOST_H_ | 107 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_MEDIA_STREAM_DISPATCHER_HOST_H_ |
OLD | NEW |