| 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_EVENTHANDLER_H_ | 5 #ifndef CONTENT_RENDERER_MEDIA_MEDIA_STREAM_DISPATCHER_EVENTHANDLER_H_ |
| 6 #define CONTENT_RENDERER_MEDIA_MEDIA_STREAM_DISPATCHER_EVENTHANDLER_H_ | 6 #define CONTENT_RENDERER_MEDIA_MEDIA_STREAM_DISPATCHER_EVENTHANDLER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "content/common/content_export.h" | 10 #include "content/common/content_export.h" |
| (...skipping 28 matching lines...) Expand all Loading... |
| 39 | 39 |
| 40 // A device has been opened. | 40 // A device has been opened. |
| 41 virtual void OnDeviceOpened( | 41 virtual void OnDeviceOpened( |
| 42 int request_id, | 42 int request_id, |
| 43 const std::string& label, | 43 const std::string& label, |
| 44 const StreamDeviceInfo& device_info) = 0; | 44 const StreamDeviceInfo& device_info) = 0; |
| 45 | 45 |
| 46 // Failed to open the device. | 46 // Failed to open the device. |
| 47 virtual void OnDeviceOpenFailed(int request_id) = 0; | 47 virtual void OnDeviceOpenFailed(int request_id) = 0; |
| 48 | 48 |
| 49 virtual void OnDevicesChanged() = 0; |
| 50 |
| 49 protected: | 51 protected: |
| 50 virtual ~MediaStreamDispatcherEventHandler() {} | 52 virtual ~MediaStreamDispatcherEventHandler() {} |
| 51 }; | 53 }; |
| 52 | 54 |
| 53 } // namespace content | 55 } // namespace content |
| 54 | 56 |
| 55 #endif // CONTENT_RENDERER_MEDIA_MEDIA_STREAM_DISPATCHER_EVENTHANDLER_H_ | 57 #endif // CONTENT_RENDERER_MEDIA_MEDIA_STREAM_DISPATCHER_EVENTHANDLER_H_ |
| OLD | NEW |