| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_DEVICE_REQUEST_MESSAGE_FILTER_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_MEDIA_DEVICE_REQUEST_MESSAGE_FILTER_H_ |
| 6 #define CONTENT_BROWSER_RENDERER_HOST_MEDIA_DEVICE_REQUEST_MESSAGE_FILTER_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_MEDIA_DEVICE_REQUEST_MESSAGE_FILTER_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 // BrowserMessageFilter implementation. | 46 // BrowserMessageFilter implementation. |
| 47 virtual bool OnMessageReceived(const IPC::Message& message, | 47 virtual bool OnMessageReceived(const IPC::Message& message, |
| 48 bool* message_was_ok) OVERRIDE; | 48 bool* message_was_ok) OVERRIDE; |
| 49 virtual void OnChannelClosing() OVERRIDE; | 49 virtual void OnChannelClosing() OVERRIDE; |
| 50 | 50 |
| 51 protected: | 51 protected: |
| 52 virtual ~DeviceRequestMessageFilter(); | 52 virtual ~DeviceRequestMessageFilter(); |
| 53 | 53 |
| 54 private: | 54 private: |
| 55 void OnGetSources(int request_id, const GURL& security_origin); | 55 void OnGetSources(int request_id, const GURL& security_origin); |
| 56 void HmacDeviceIds(const GURL& origin, | |
| 57 const StreamDeviceInfoArray& raw_devices, | |
| 58 StreamDeviceInfoArray* devices_with_guids); | |
| 59 | 56 |
| 60 // Owned by ProfileIOData which is guaranteed to outlive DRMF. | 57 // Owned by ProfileIOData which is guaranteed to outlive DRMF. |
| 61 ResourceContext* resource_context_; | 58 ResourceContext* resource_context_; |
| 62 MediaStreamManager* media_stream_manager_; | 59 MediaStreamManager* media_stream_manager_; |
| 63 | 60 |
| 64 struct DeviceRequest; | 61 struct DeviceRequest; |
| 65 typedef std::vector<DeviceRequest> DeviceRequestList; | 62 typedef std::vector<DeviceRequest> DeviceRequestList; |
| 66 // List of all requests. | 63 // List of all requests. |
| 67 DeviceRequestList requests_; | 64 DeviceRequestList requests_; |
| 68 | 65 |
| 69 DISALLOW_COPY_AND_ASSIGN(DeviceRequestMessageFilter); | 66 DISALLOW_COPY_AND_ASSIGN(DeviceRequestMessageFilter); |
| 70 }; | 67 }; |
| 71 | 68 |
| 72 } // namespace content | 69 } // namespace content |
| 73 | 70 |
| 74 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_DEVICE_REQUEST_MESSAGE_FILTER_H_ | 71 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_DEVICE_REQUEST_MESSAGE_FILTER_H_ |
| OLD | NEW |