| 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_PEPPER_PEPPER_MEDIA_DEVICE_MANAGER_H_ | 5 #ifndef CONTENT_RENDERER_PEPPER_PEPPER_MEDIA_DEVICE_MANAGER_H_ |
| 6 #define CONTENT_RENDERER_PEPPER_PEPPER_MEDIA_DEVICE_MANAGER_H_ | 6 #define CONTENT_RENDERER_PEPPER_PEPPER_MEDIA_DEVICE_MANAGER_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 | 9 |
| 10 #include "base/memory/weak_ptr.h" | 10 #include "base/memory/weak_ptr.h" |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 void CloseDevice(const std::string& label); | 53 void CloseDevice(const std::string& label); |
| 54 // Gets audio/video session ID given a label. | 54 // Gets audio/video session ID given a label. |
| 55 int GetSessionID(PP_DeviceType_Dev type, const std::string& label); | 55 int GetSessionID(PP_DeviceType_Dev type, const std::string& label); |
| 56 | 56 |
| 57 // MediaStreamDispatcherEventHandler implementation. | 57 // MediaStreamDispatcherEventHandler implementation. |
| 58 virtual void OnStreamGenerated( | 58 virtual void OnStreamGenerated( |
| 59 int request_id, | 59 int request_id, |
| 60 const std::string& label, | 60 const std::string& label, |
| 61 const StreamDeviceInfoArray& audio_device_array, | 61 const StreamDeviceInfoArray& audio_device_array, |
| 62 const StreamDeviceInfoArray& video_device_array) OVERRIDE; | 62 const StreamDeviceInfoArray& video_device_array) OVERRIDE; |
| 63 virtual void OnStreamGenerationFailed(int request_id) OVERRIDE; | 63 virtual void OnStreamGenerationFailed( |
| 64 int request_id, |
| 65 content::MediaStreamRequestResult result) OVERRIDE; |
| 64 virtual void OnDeviceStopped(const std::string& label, | 66 virtual void OnDeviceStopped(const std::string& label, |
| 65 const StreamDeviceInfo& device_info) OVERRIDE; | 67 const StreamDeviceInfo& device_info) OVERRIDE; |
| 66 virtual void OnDevicesEnumerated( | 68 virtual void OnDevicesEnumerated( |
| 67 int request_id, | 69 int request_id, |
| 68 const StreamDeviceInfoArray& device_array) OVERRIDE; | 70 const StreamDeviceInfoArray& device_array) OVERRIDE; |
| 69 virtual void OnDeviceOpened( | 71 virtual void OnDeviceOpened( |
| 70 int request_id, | 72 int request_id, |
| 71 const std::string& label, | 73 const std::string& label, |
| 72 const StreamDeviceInfo& device_info) OVERRIDE; | 74 const StreamDeviceInfo& device_info) OVERRIDE; |
| 73 virtual void OnDeviceOpenFailed(int request_id) OVERRIDE; | 75 virtual void OnDeviceOpenFailed(int request_id) OVERRIDE; |
| (...skipping 18 matching lines...) Expand all Loading... |
| 92 | 94 |
| 93 typedef std::map<int, OpenDeviceCallback> OpenCallbackMap; | 95 typedef std::map<int, OpenDeviceCallback> OpenCallbackMap; |
| 94 OpenCallbackMap open_callbacks_; | 96 OpenCallbackMap open_callbacks_; |
| 95 | 97 |
| 96 DISALLOW_COPY_AND_ASSIGN(PepperMediaDeviceManager); | 98 DISALLOW_COPY_AND_ASSIGN(PepperMediaDeviceManager); |
| 97 }; | 99 }; |
| 98 | 100 |
| 99 } // namespace content | 101 } // namespace content |
| 100 | 102 |
| 101 #endif // CONTENT_RENDERER_PEPPER_PEPPER_MEDIA_DEVICE_MANAGER_H_ | 103 #endif // CONTENT_RENDERER_PEPPER_PEPPER_MEDIA_DEVICE_MANAGER_H_ |
| OLD | NEW |