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_MEDIA_MEDIA_INTERNALS_H_ | 5 #ifndef CONTENT_BROWSER_MEDIA_MEDIA_INTERNALS_H_ |
6 #define CONTENT_BROWSER_MEDIA_MEDIA_INTERNALS_H_ | 6 #define CONTENT_BROWSER_MEDIA_MEDIA_INTERNALS_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 27 matching lines...) Expand all Loading... |
38 ~MediaInternals() override; | 38 ~MediaInternals() override; |
39 | 39 |
40 // Called when a MediaEvent occurs. | 40 // Called when a MediaEvent occurs. |
41 void OnMediaEvents(int render_process_id, | 41 void OnMediaEvents(int render_process_id, |
42 const std::vector<media::MediaLogEvent>& events); | 42 const std::vector<media::MediaLogEvent>& events); |
43 | 43 |
44 // Add/remove update callbacks (see above). Must be called on the IO thread. | 44 // Add/remove update callbacks (see above). Must be called on the IO thread. |
45 void AddUpdateCallback(const UpdateCallback& callback); | 45 void AddUpdateCallback(const UpdateCallback& callback); |
46 void RemoveUpdateCallback(const UpdateCallback& callback); | 46 void RemoveUpdateCallback(const UpdateCallback& callback); |
47 | 47 |
| 48 // Replay all saved media events for alive renderers. |
| 49 void SendHistoricalMediaEvents(); |
| 50 |
48 // Sends all audio cached data to each registered UpdateCallback. | 51 // Sends all audio cached data to each registered UpdateCallback. |
49 void SendAudioStreamData(); | 52 void SendAudioStreamData(); |
50 | 53 |
51 // Sends all video capture capabilities cached data to each registered | 54 // Sends all video capture capabilities cached data to each registered |
52 // UpdateCallback. | 55 // UpdateCallback. |
53 void SendVideoCaptureDeviceCapabilities(); | 56 void SendVideoCaptureDeviceCapabilities(); |
54 | 57 |
55 // Called to inform of the capabilities enumerated for video devices. | 58 // Called to inform of the capabilities enumerated for video devices. |
56 void UpdateVideoCaptureDeviceCapabilities( | 59 void UpdateVideoCaptureDeviceCapabilities( |
57 const media::VideoCaptureDeviceInfos& video_capture_device_infos); | 60 const media::VideoCaptureDeviceInfos& video_capture_device_infos); |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
104 base::DictionaryValue audio_streams_cached_data_; | 107 base::DictionaryValue audio_streams_cached_data_; |
105 int owner_ids_[AUDIO_COMPONENT_MAX]; | 108 int owner_ids_[AUDIO_COMPONENT_MAX]; |
106 scoped_ptr<MediaInternalsUMAHandler> uma_handler_; | 109 scoped_ptr<MediaInternalsUMAHandler> uma_handler_; |
107 | 110 |
108 DISALLOW_COPY_AND_ASSIGN(MediaInternals); | 111 DISALLOW_COPY_AND_ASSIGN(MediaInternals); |
109 }; | 112 }; |
110 | 113 |
111 } // namespace content | 114 } // namespace content |
112 | 115 |
113 #endif // CONTENT_BROWSER_MEDIA_MEDIA_INTERNALS_H_ | 116 #endif // CONTENT_BROWSER_MEDIA_MEDIA_INTERNALS_H_ |
OLD | NEW |